fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. for (int i = 1; i < 1000; i*=2)
  6. printf("i = %2d\n", i);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
i =  1
i =  2
i =  4
i =  8
i = 16
i = 32
i = 64
i = 128
i = 256
i = 512