how to loop correctly this program

Printable View