How to approach this problem?

i couldn’t find a way to do it without ascii… any hints would be helpful

You can do by conditional statements like
if(ch>=‘A’&&ch<=‘Z’) uppercase
else if(ch>=‘a’&&ch<=‘z’) lowercase

ohh i did the same… but at the end we are comparing the characters and it is known that internally there is comparison of ascii values only

Yeah…internally ascii are still being compared. But still…there is no more alternative…
Here you were supposed to do just as i said

ok bhaiiya thankyou :slight_smile: