If you want to leave a loop then you can use break and if you want to jump to next iteration then you use continue. See the following flow charts:
Break
Continue
Sample Code
for (i=0; i<5; i++) {
if (i == 2)
break;
printf("%d ", i);
}
Output: 0 1
for (i=0; i<5; i++) {
if (i == 2)
continue;
printf("%d ", i);
}
Output: 0 1 3 4