by CodeChum Admin
The only constant thing in the world is change. That’s why we need to call the toupper() function to change what we already have into a better version.
Instructions:
Input
1. Letter to be updated
Output
Enter·a·small·letter:·a
Uppercase·=·A
#include <iostream>
#include <cctype>
using namespace std;
int main()
{
char letter;
cout<<"Enter a small letter: ";
cin>>letter;
char ch = toupper(letter);
cout<<"Uppercase = "<<ch<<"\n\n";
system("pause");
return 0;
}
Comments
Leave a comment