C Program for loop: "Continue statement using for loop" with output

 #include <stdio.h>

int main() { int i; printf("Numbers from 1 to 10 except 5:\n"); for (i = 1; i <= 10; i++) { if (i == 5) { continue; // Skip iteration when i is 5 } printf("%d ", i); } return 0; }



Numbers from 1 to 10 except 5: 1 2 3 4 6 7 8 9 10

Comments

Popular posts from this blog

Video Formats

Where video editing is used

File saving and folder management