Cannot figure out basic nested for loop

Printable View