My test case 2 is giving no output question isTake the following as input. A character (ch) Write a function that returns ‘U’, if it is uppercase; ‘L’ if it is lowercase and ‘I’ otherwise. Print the value returned

#include
using namespace std;
int main() {
char ch1;
cin>>ch1;
int ch;
ch=int(ch1);
if(ch<=90&&ch>=65){
cout<<“UPPERCASE”;
}
else if(ch<=122&&ch>=97){
cout<<“lowercase”;
}
else if((ch>=0 && ch<=47) || (ch>=58&& ch<=64) || (ch>=91 && ch<=96) || (ch>=123 && ch<=127)){
cout<<“Invalid”;
}
return 0;
}

this is my code

change your line
else if((ch>=0 && ch<=47) || (ch>=58&& ch<=64) || (ch>=91 && ch<=96) || (ch>=123 && ch<=127))
to
else
cout<<“Invalid”

There is no need to include the condition, code will work without tht also