Skip to content

Commit

Permalink
Create lower to upper.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshgupta09 authored Oct 20, 2018
1 parent e4d94f7 commit 9758523
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 9758523

Please sign in to comment.