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