The do – while is an exit control loop means that it will
execute minimum one time either condition true or false.
In do – while loop first body of the loop is executed than
the condition is checked. If the condition is true than again the body of the
do – while is executed. This process is repeated until the condition become
false. The do – while loop terminate with a semicolon after the while
statement.
Sy:
do
{
……………….
………………
}while(condition);
No comments:
Post a Comment