Newbie, why is my program printing output twice?

Printable View