#include
using namespace std;
int main()
{ char c;
cin>>c;
if(c>=‘a’ && c<=‘z’)
{ cout<<“lowercase”;
}
if(c>=‘A’ && c<=‘Z’)
{ cout<<“UPPERCASE”;
}
else
cout<<“Invalid”;
return 0;
}
Why am i getting a wrong answer in one of the testcases
@bhavyajain hey bhavya please don’t post your code directly please save the code first on cb.lk/ide it will generate a url that url you have to share the problem with your code is that your conditional statement second if should be else if
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.