Help me with the logic

How can i check character case without using ASCII codes??

you can use functions like islower() and isupper();
or you can directly compare them like ( alpha>=ā€˜a’ and char<=ā€˜z’ )