Cant understand why two cases are not suceed

#include
using namespace std;
int main() {
char ch;
cin>>ch;
if(ch>=‘a’ && ch<=‘z’){
cout<<“lowercase”<<ch<<endl;
}
else if(ch>=‘A’ && ch<=‘Z’){
cout<<“UPPERCASE”<<ch<<endl;
}
else{
cout<<“Invalid”<<endl;
}

return 0;

}
on writing this code it shows two output correct and not other two cases why whats wrong in my code while i run same code on gdb compiler it show coorect output plz reply me

logic is correct but print the output according to the question!..

mistake:
cout<<“lowercase”<<ch<<endl;
correct one:
cout<<“lowercase”<<endl;

modified code is:

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.