fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int count = 0;
  6.  
  7. for ( ; ; ) {
  8. count++;
  9. if (count == 5) break;
  10. }
  11.  
  12. printf("ループ回数: %d\n", count);
  13.  
  14. return (0);
  15. }
Success #stdin #stdout 0s 1788KB
stdin
Standard input is empty
stdout
ループ回数: 5