Lower upper problem

as i am unable to convert my logic into code please help me

Hi @bakshianjali49,

#include<iostream>
#include<string>
using namespace std;
int main() {
	char ch;
	cin>>ch;
	if(ch>='a' and ch<='z'){
		cout<<"lowercase";
	}
	else if(ch>='A' and ch<='Z'){
		cout<<"UPPERCASE";
	}
	else{
		cout<<"Invalid";
	}
	return 0;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.