hi all,
i have written the following code:
while(proceed !='Y' && proceed!='N' && proceed!='y' && proceed!='n')
{
printf\("\\nPress \\n\\t 'Y' or 'y' to continue \\n\\t 'N' or 'n' to cancel:"\);
scanf\("%c",&proceed\);
\}
the output i am gettin is:
Press
'Y' to continue
'N' to cancel
: a
Press
'Y' to continue
'N' to cancel
: (not allowing me to enter the value here and directly printing once more.)
Press
'Y' to continue
'N' to cancel
: b
Press
'Y' to continue
'N' to cancel
:
Press
'Y' to continue
'N' to cancel
:
why is this happening can nyone help me with this??
thanx