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