Why does the output for this program come out "reverse"?

Printable View