Having trouble looping & printing output

Printable View