Cant figure out where the code is lacking

hi @nikunjdahiya100_5cd11198034eff48
try this -->

#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;
}

hi @nikunjdahiya100_5cd11198034eff48
I hope it’s clear now??

yes thank you so much its much simpler now

1 Like

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.