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