Problem with program not outputting properly

Printable View