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