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