C++ Language/ProgramFlow/Loops/BasicLoops

Loops can be written as while (condition) { body } or as do { body } while(condition);. The initialization and updating of a loop can be consolidated into for (iIndex = 0; iIndex < 10; iIndex++) { body }.

Additional information about loops (includes interactive examples)