How to use a for loop for this?

Printable View