I can't get this loop to work correctly

Printable View