C++ Program to convert a lowercase alphabet to uppercase or vice-versa

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
char ch;
cout<<“Enter any Alphabet:”;
cin>>ch;

if(ch>=’a’&&ch<=’z’)
{
cout<<“ntYou have entered a lowercase alphabet”;
ch=ch-32;
cout<<“nnThe uppercase alphabet is “<<ch;
}
else
{
cout<<“ntYou have entered an Uppercase alphabet”;
ch=ch+32;
cout<<“nnThe lowercase alphabet is “<<ch;
}
getch();
}

4 thoughts on “C++ Program to convert a lowercase alphabet to uppercase or vice-versa

  1. junaid kundi

    hi neeraj if u upload the output of this program then….

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *