It isn't ignoring anything, it's just executing according to the meaning of the code. In this if statement,
we assume the user typed "yen", so the variable
Money
contains the value "yen". The variable
Yen
is a string which still has its default initial value, which is an empty string "".
So
if (Money == Yen)
becomes in effect a test of
"yen" == ""
. Since they are not the same, the condition is false and the program resumes after the end of that if statement, and then terminates.
You could instead put:
const string Yen = "yen";
give the variable the required initial value. Or simply delete that variable, and change the if statement to:
that is, replace the variable Yen with the character string literal "yen".