Hi.Am Using switch -case statements (see below)and i have cases 1-5 .If the user inputs a character I want an error message printed out prompting the user to re enter his\her choice.how do i get that done?pls help
int choice;
.......
........
scanf("%d",&cho ice)
switch(choice){
case 1:printf(....
......
break;
case 2:.....
int choice;
.......
........
scanf("%d",&cho ice)
switch(choice){
case 1:printf(....
......
break;
case 2:.....
Comment