how can i do this without using loops?

Printable View