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