Please explain what happens?
Does it loop when it should not loop?
Does it not loop when it should loop?
Try debugging the code by printing out the values of the variables used to control the...