#include <stdio.h>
int main()
{
char TurHare;
while(1)
{
scanf("%c",TurHare);
printf("\nCharacter :%c", TurHare);
}
return 0;
}
When I compile and then run the program the output is like :
w
Character : w
Character :
where w is the input from console.
It should appear like:
w
Character : w
How to do it?