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);
}

Last edited by shabbir; 22Apr2012 at 09:01.. Reason: Code blocks