fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int main() {
  5. int x;
  6. int i = 0;
  7. for(i=0;i<5;++i)
  8. {
  9. x*=2,x+=1;
  10. printf("%d\n",x);
  11. }
  12. printf("c=%d\n",x);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5300KB
stdin
Standard input is empty
stdout
1
3
7
15
31
c=31