how can i do this problem using without ASCII code as it is told in explaination
Character type problem
#include <iostream>
using namespace std;
int main() {
char ch;
cin>>ch;
if(ch >= 'a' && ch <= 'z'){
cout<<"L"<<endl;
}
else if(ch >= 'A' && ch <= 'Z'){
cout<<"U"<<endl;
}
else{
cout<<"I"<<endl;
}
}
u can do it like this…
this i know vaibhav but in explaination column it is telling to try it without using ASCII codes
this is not ascii code… this is just by characters… ascii means numerical equivalent of characters
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.