Code:
#include<iostream>
using namespace std;
void main()
{
char lower;
int uper;
cout<<"Enter Lower case letter = ";
cin>>lower;
uper=int(lower)-32;
cout<<char(uper)<<endl;
}
#include<iostream>
using namespace std;
void main()
{
char lower;
int uper;
cout<<"Enter Lower case letter = ";
cin>>lower;
uper=int(lower)-32;
cout<<char(uper)<<endl;
}
Output:
0 Questions:
Post a Comment