I also came up with the below code still doesnt work Code: #include <iostream> #include <cctype> using namespace std; int main() { char s; cout<<"Name your favourite soccer team in uppercase\n"; while (cin.get(s)); { if(isupper(s)) cout<<(char)toupper(s); else cout<<s; } return(EXIT_SUCCESS); }