8E. Standards for Loops

  1. Each function body must contain no more than one loop. This requirement forces you to break your program into shorter functions, which is consistent with the goals of this course.

  2. A loop must be able to perform its body more than once. Otherwise, you are clearly misunderstanding what you have written.

  3. The body of a loop must not be just a semicolon.

The next page covers another important standard for loops. See the standards for loops for more detail.