For Loop Screenshot

As instructed here is my for loop function(?) before I look at the answer, hoping I don’t look like a complete fool.

Edit: I forgot about the ‘magic number’ but other than that it worked.