how come this program only loops twice? wheres my mistake?

Printable View