Write a C++ program to determine whether the input character is lower-case or upper-case
#include<iostream.h>
#include<conio.h>
void main( )
{
char ch ;
clrscr( );
cout<<"Enter the Character: ";
cin>>ch;
if(ch>= 'A' && ch <='Z')
cout<<"it is an Upper-Case Character"<<endl;
else
cout<<"it is a Lower-Case Character"<<endl;
getch( );
}

No comments: