fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. int a = 10; /* just a variable */
  5. int i; /* loop increment */
  6.  
  7. for (i = 1; i < 10; i = i + 2)
  8. {
  9. a += 5;
  10. break;
  11. a = a + 100; /* this statement never executed */
  12. }
  13.  
  14. /* first executable statement after the loop */
  15. printf ("after the loop \n");
  16.  
  17. printf ("i = %i, a = %i\n", i, a);
  18.  
  19. return (0);
  20.  
  21. } /* end main */
Success #stdin #stdout 0.01s 5292KB
stdin
20
stdout
after the loop 
i = 1, a = 15