Sunday, 16 November 2014

Write a program in c plusplus to convert a lowercase letter to uppercase

Leave a Comment
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;

}

Output:


If You Enjoyed This, Take 5 Seconds To Share It