Exit control loop
Exit control loop is a loop in which the the statements of the loop are executed first and then the condition is checked.
In “C++” language we have one entry control loop.
(i) do while loop
Do while loop
syntax:
do
{
statements;
statements;
statements;
}while(condition);
* Do while loop is an exit control loop.
* In do while loop the statements of the loop are executed first and then the condition is checked.
* In do while loop irrespective of whether the condition is true or not the statements of the loop are executed at least once.