I have created a program which I would like to to display the error message as specified by printf and not end with it.I would like to program to ask for the user's input again if the user inputs a invalid option or inputs an alphabet.
I would be really grateful if anyone could help me with it and give me a basic idea.thank you.#include
int main ()
printf ("press 1 for breakfast.
press 2 for lunch.
press 3 for dinner.
press 4 to quit.
if ((c>='a') && (c<='z') || (c>='A') && (c<='Z'))
printf ("no alphabets allowed.
printf ("thank you.
printf ("not a valid option.