CODE NOT GETTING SUBMITTED

MY CODE
#include
using namespace std;
int main()
{
cout<<“lowercase and uppercase program”<<endl<<“enter the character”<<"\n";
char _a;
cin>>_a;
if(_a>=‘a’ && _a<=‘z’)
{
cout<<“lowercase”;
}
else if(_a>=‘A’ && _a<=‘Z’)
{
cout<<“UPPERCASE”;
}
else
{
cout<<“invalid”;
}
return 0;
}
IT IS CORRECT BY ALL MEANS. and i am sure it will pass all the tests. but it says it fails.

hi @siddharthkumaree21b954_52c884d346b69187 updated and commented your mistake

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.

1 Like