char choice; // it will instantly transform it to upper case without the need // to convert it to int first choice = (char)toupper(choice);