loop not working correctly

Printable View