Before you work on reversing the loop, check that you have the first one, really correct:
1) Did you add the end of string char onto the end of the string, yet? (as mentioned by iMalc). That should go right after the for loop finishes.
2) Did you check out Laserlight's concern about the i++ when there is an empty space? Your code should fail if there are two spaces in a row. (and is it necessary to increment the i when you reach a space? Why not let the loop handle incrementing the i?).
Reversing the loop would mean starting from the end, and decrementing the loop counter (i-- instead of i++), if you want to use a similar logic.
We have no idea what is done "deliberately" and what is not. You can see hundreds of examples of how to post right, and how to format your code correctly here. Follow them, and please - forget being "thin skinned", here. Think of "water off a duck's back", as much as you can. The best excuse here, is no excuse at all. Like Nike says: "Just do it". You'll learn far more than you will in an argument -- unless it's an argument about code, of course! :cool: