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