Syntax:
do
{
Body of loop
}
while(condition);
in the above syntax the body of the loop is must be executed even the condition is not satisfied because in this the condition is evaluated after the body, so it is provides exit-control loop.
Syntax:
do
{
Body of loop
}
while(condition);
in the above syntax the body of the loop is must be executed even the condition is not satisfied because in this the condition is evaluated after the body, so it is provides exit-control loop.