fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {int a=3,n=0;
  5. while(a<=30)
  6. {
  7. a=2*a-1;
  8. n= n+1;
  9. };
  10. printf(" %d 番で初めて10000を超えます",n);
  11.  
  12.  
  13.  
  14. return 0;}
Success #stdin #stdout 0s 5292KB
stdin
1 27
stdout
 4 番で初めて10000を超えます