The trailing enter from the previous scanf
is taken up as input for the next scanf
You need to "eat up" the trailing newline:
with something like this :
while( (c=getchar()) != '\n' && c!= EOF);
or simply use :
scanf(" %c", &c); //Notice a space
Also fix :
scanf("&c",&c);
to scanf("%c",&c);