Write C++ program which accept a letter and display it in uppercase letter.
Source Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| #include<iostream>
#include<cctype>
using namespace std;
int main()
{
char ch;
cout<<"Enter any character :";
ch=getchar();
ch=toupper(ch);
cout<<ch;
return 0;
}
|

Post a Comment