ToCheck if value is upper case or lower

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char a;
int m;
cout<<“enter any character”;


cin>>a;
for(char x=’A’; x<=’Z’; x++)
{
if(a%x==0)
cout<<“INPUT VALUE IS UPPER CASE”;
}
for(char z=’a’; z<=’z’; z++)
{
if(a%z==0)
cout<<“input value is lower case”;
}
getch();
}

Comments

Popular Posts