Switch statement not scanning input

I want to scan what the user inputs in case'1' however when executed
I input the number 1 for the first option.
However it just prints "please enter the letter Y and the "if" printf statement, straight after one another without letting the user entering an input.

Apparently the getchar() does not read a character before you hit Enter. When you do hit it, getchar takes one character and leaves the newline character into the stdin. Then cometh scanf, which is happy with that character.

One thing that apparently "behaves" is scanf(" %c",&Yes);. The space in format makes scanf discard all whitespace, including that newline, that precedes non-whitespace character.