fork(1) download
  1. #include <stdio.h>
  2. int main() {
  3. int a=3,b=0;
  4. do
  5. {
  6. a=2*a-1;
  7. b=b+1;
  8. }
  9. while(a<=10000);
  10. printf("%d番目に10000を超え、値は%dになります。\n", b);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
13番目に10000を超え、値は-1514962576になります。