Write a program in c programming using continue statement.consider the following.
The program will allow a user to enter numbers from 1 to 20.
When the loop reaches at 12, it skips the number and continue with rest of the numbers.
#include <stdio.h>
int main() {
int num;
for(int i = 1; i <= 20; i++) {
printf("Enter a number between 1 to 20: ");
scanf("%d", &num);
if(num == 12) {
printf("Number 12 is skipped.\n");
continue;
}
printf("You entered: %d\n", num);
}
return 0;
}