OP:
> When the input is ABCDE, i want the output to be EDCBA

So do you need to reverse the string at all, or are you just outputting a string in reverse order?
Did you try what I suggested earlier - displaying the loop variables?

Ryzer's example won't work because value[] doesn't exist. But what I don't understand about it is what value2[] is for. This seems to be an exact duplicate of value1[], not reversed or anything. The next loop then displays value2[] in reverse order. So why doesn't it just display value1[] in reverse order?