Code:
printf("1. Britain\n");
printf("2. Denmark\n");
printf("3. Japan\n");
printf("4. USA\n");
printf("5. Exit Program\n\n");
/* Ask user for there choice */
/* And Asign the choice to varabial manu_choice, which is of int data type */
do
{
printf("Please Enter Your Country Selection From The Menu: \t");
error = scanf("%d",&menu_choice);
fflush(stdin);
} while ( menu_choice < 1 || menu_choice > 5 && error == 0);
Is this enough to stop any values being entered at the inital menue choice? i only want 1 - 5 to be accepted and anything else should prompt the user again.