I don't understand why my program is outputting the way it is

Printable View