Why is my loop printing out 2 lines at one shot?

Printable View