(2) Add this into your else statement



while ((ch = getchar()) != '\n')
{
if(ch > 1)
{
printf("Error! Re-enter : ");
scanf("%d", &stop);