Skip to content

Commit

Permalink
Merge pull request zeh#2 from Arshgupta09/Arshgupta09-patch-2
Browse files Browse the repository at this point in the history
Create lower to upper.cpp
  • Loading branch information
Arshgupta09 committed Oct 20, 2018
2 parents e4d94f7 + 9758523 commit 75ad00b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lower to upper.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#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();
}

0 comments on commit 75ad00b

Please sign in to comment.