Here is my very simple code where I am trying to input each lettre of user's name and then finally display the name:-
// so when this prog. is executed then it asks for first lettre [first printf statement is executed.]
char a, b, c;
printf("Entre the first letter: ");
printf("\n Entre the sec letter: ");
printf("\n Entre the third letter: ");
printf("\n Name: %c%c%c", a,b ,c);
// Then after entering the first lettre rather than just asking for the second letter it directly displays the second and third printf() statements.[two printf() statements are being displayed simulteniously, without getting any input]
// Rather it should display the second printf() first then after getting the second input it should display the third printf() statement.
// Help please.