Can someone check out my source code and tell me what's wrong with it?
z-lastchar
Try this
IAMTHEWINNER
7
Answer
T
IAMTHEWINNER
7
Answer
T
It works on my computer.
I tried your code on my computer, windows XP, on dev c++ 4.9.9.2 and it gave the result "R". Your program is not good.