fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=3;
  5. do{
  6. a = 2*a - 1;
  7. }while( a < 10000);
  8. printf("初めて10000を超えるときは%dとなる",a);
  9. return 0;
  10. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
初めて10000を超えるときは16385となる