Having trouble on solving the following tasks

PaulS:
Changing code that you posted a while ago is a dirty trick. Please do not do that again. Post the code in a new reply.

I've changed the code on reply #44 back to where it was. So don't worry about it. Although, i am still concerned on using the for loop