and a cycle for
A) The while loop. General form
The while loop is called a loop with a precondition
b) The general form of the cycle operator ‘do … while’
The ‘do … while’ loop should be used in cases where the iteration should be done at least once. Unlike ‘for’ and ‘while’ loops, in the ‘do … while’ loop, the condition is checked when the loop exits (and not when entering the loop). The ‘do … while’ loop is also called a cycle with a postcondition.
c) In C++, the ‘for’ loop can have a very wide implementation and application. The ‘for’ loop is also called a cycle with a parameter.