I agree, completely, with jps. Don't think of a loop as a solution looking for a problem, regardless of how the problem is worded. Think of what you can to to solve the problem.

For a given...