i cant think anymore
How to do this without ascii codes?
@sagar_aggarwal there are two ways to do it without ascii codes. Although these also indirectly use ascii codes only. Dont forget to mark your doubt as resolved in case of no further queries 
- use the inbuilt functions islower() and isupper() they return a boolean value.
char ch;
cin >> ch;
if (isupper(ch)) {
cout << 'U';
}
else if (islower(ch)) {
cout << 'L';
}
else {
cout << 'I';
}
- simply compare the characters with
aandzfor lowercase and withAandZfor uppercase
char ch;
cin >> ch;
if (ch >= 'A' && ch <= `Z`) {
cout << 'U';
}
else if (ch >= 'a' && ch <= 'z') {
cout << 'L';
}
else {
cout << 'I';
}
that was way too common-sense challange 
Thanks ishita