You might want to check to see if the input was ok - I noticed that you don't actually check if the input is c/C


//IF CELSIUS; ENTER TEMPERATURE
else if (x == 'C' || x == 'c')
{
...
}...