Unable to submit solution

#include
using namespace std;
int main() {
char c;
cout << “enter a character:”;
cin >> c;
if(c>=65&&c<=90)
cout<<“you entered an upper case character”<<c<<endl;
else if(c>=97&&c<=122)
cout<<“you entered a lower case character”<<c<<endl;
else
cout<<"invalid "<<endl;

return 0;

}

hi @aditaroraindian_e3b2481e08673e90 u dont need to write these sentences just write whats told in question
refer

#include

using namespace std;

int main() {

char c;

cout << "enter a character:";

cin >> c;

if(c>=65&&c<=90)

cout<<c<<endl;

else if(c>=97&&c<=122)

cout<<c<<endl;

else

cout<<"invalid "<<endl;

return 0;

}

am still not able to submit

and it is successfully running on coding blocks ide

hi @aditaroraindian_e3b2481e08673e90 u dont have to print enter a charecter
also u need to print lowercase or UPPERCASE
refer the code i gave

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