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