fork download
  1. #include <stdio.h>
  2. #include <stdbool.h>
  3.  
  4. int main(void) {
  5. int cnt = 0;
  6. bool hoge = false;
  7.  
  8. while( !hoge){
  9. if( cnt++ >= 10) hoge = true;
  10. printf("cnt=%d, hoge=%d\n", cnt, hoge);
  11. }
  12. return 0;
  13. }
  14. /* end */
  15.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
cnt=1, hoge=0
cnt=2, hoge=0
cnt=3, hoge=0
cnt=4, hoge=0
cnt=5, hoge=0
cnt=6, hoge=0
cnt=7, hoge=0
cnt=8, hoge=0
cnt=9, hoge=0
cnt=10, hoge=0
cnt=11, hoge=1