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