hi guys!
if i have an output of choices like this :
************************output**********************
[1]menu
[2]exit
****************************************************
do
{
if(ans==1)
{
//codes in menu
}
else if(ans==2)
{
printf("thank you. good bye");
exit(0);
}
else
printf("wrong input!");
)while(ans==1);
i really want to go to menu by just pressing the number 1(one) without pressing the ENTER key. but i cant do it..
:((