The common solution is to put the loops into their own function and use a return statement instead. But yes I am also one to have set the outer loop variable such that that loop will terminate and...