#include <stdio.h> int main() { for (int i = 0; i < 10; i++) { if (i == 5) { break; } printf("%d\n", i); } return 0; }
godarda@gd:~$ gcc gd.cgodarda@gd:~$ ./a.out 0 1 2 3 4 godarda@gd:~$
#include <stdio.h> int main() { for (int i = 0; i < 10; i++) { if (i == 5) { continue; } printf("%d\n", i); } return 0; }
godarda@gd:~$ gcc gd.cgodarda@gd:~$ ./a.out 0 1 2 3 4 6 7 8 9 godarda@gd:~$