That's because a <enter> is two characters and scanf() is leaving the Enter key (newline) in the input buffer after you read out a single character.
Try it like this...
Note the space inserted between the " and % .... That tells scanf() to ignore invisible characters.Code:scanf(" %c",&c);