fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=0, n=0;
  5. do
  6. {
  7. a=a+1;
  8. n = n+1;
  9. }
  10. while( a<=100 );
  11. printf("値は%d %d番目で初めて10000を超える\n",a, n);
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
値は101 101番目で初めて10000を超える