THIS IS A PART OF MY PROG.. I M USING A DO-WHILE LOOP. i want e to b a character rather than an integer but when ever i try to run my prog with e as a character it doesnt work all the same... i did change the values in if condition to characters as well... can u plz tell me how to work this with e as a character????
printf("\n\n\nPress 1 to EXIT or 2 to CONTINUE : ");
scanf("%d",&e);
if (e==1)
break;
else
printf ("error: incorrect input");
}
while (e==2);
getch();