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