to check whether a character is uppercase or lowercase alphabet.

#include<iostream>

 

using namespace std;

 

int main()

{  

char ch;

cout<<"Enter any character: ";

cin>>ch;

 

if(ch>=65&&ch<=90)

cout<<endl<<"You entered an uppercase character";


else if(ch>=97&&ch<=122)

cout<<endl<<"You entered a lowercase character";

else

cout<<endl<<"wrong input";

return 0;


}