hi all complete newbie here im just trying to practice some stuff i have learnt so far and have come across an issue i have no clue as to why it is happening.

i have some code that asks the user a yes or no question and acts apon the answer ie
Code:
printf("are you male\n");
scanf("%c",&yn);
if (yn=='y')
{
      //do suff
}

printf("are you tall\n");
scanf("%c",&yn);
if (yn=='y')
{
      //do suff
}
return 0;
doesn't ask for input on the second scanf it just exits the program

however .....

Code:
scanf("%c",&yn); //why this extra scanf
printf("are you tall\n");
scanf("%c",&yn);
if (yn=='y')
{
      //do suff
}
return 0;
works as in a get asked to enter y or n a second time.

any help would be appreciated
many thanks
coop