Write a program which accept a letter and display it in uppercase letter.
Source Code
#include<iostream>
#include<cctype>
using namespace std;
int main()
{
char ch;
cout<<"Enter any character :";
ch=getchar();
ch=toupper(ch);
cout<<ch;
return 0;
}
Output
Enter any character : d D