You have to change you Code
else if (c.Equals('x'))
to
else if ("X".ToLower() == "x")
or
else if ("x".ToUpper() == "X"
this will work if the user enters caps X or small x...
One Suggestion Its better to use switch-case-default statement if you want to make a decision from the number of choices..
Hope this will hep you.