I'm requesting an input inside a loop that looks like this:
for (i = 0; i <= 8; i ++)
{
scanf("%c",&a);
printf("%c",a);
printf("This is just for show\n");
}
The output on my console is, while having the user Input "A" followed by an "enter" to set the input:
A
AThis is just for show
This is just for show
Afterwards it´s awaiting a new input, so basically my char variable has once the value of "A" and once of "enter". Can you guys point me on the right track on how can only read in the only first input ("A") and don´t get the "enter" as my second input in the loop?