How to Design a Loop with C++ Samples
What are the seven questions that must be answered to design a loop?
Designing the Flow of Control
The answer to the above questions depends on the type of termination conditions.
Dale, N. and Weems, C. (2010). Programming and Problem Solving with C++, 5th Edition, Jones and Bartlett Publishers, LLC, Sudbury, MA.