in reply to loop problem

Ask your teacher for help with your homework ...