Program to check whether character is Lowercase or Uppercase.
A program that accept character value from user and check whether the given character is a Lowercase letter or Uppercase letter.
using namespace std;
#include<iostream>
#include<conio.h>
int main()
{
char ch;
cout<<"Enter a Character:";
cin>>ch;
if (ch>='a' && ch<='z')
cout<<"Entered Character is a Lowercase latter";
else
cout<<"Entered character is not a lowercase latter";
getch();
return 0;
}
Program to check whether character is Lowercase or Uppercase.
Reviewed by Alpha
on
3/08/2017 03:58:00 pm
Rating:
No comments: