Do while loop
Views (187)
The function of a do while statement is almost identical to the while statement.
The main difference is that the condition is evaluated after the statement
executes. The effect is that the loop always runs at least one time. The following
is the syntax for a do while statement:do
{
//statement;
}
while (condition);
Best Regards,
Hossein Karimi
The main difference is that the condition is evaluated after the statement
executes. The effect is that the loop always runs at least one time. The following
is the syntax for a do while statement:do
{
//statement;
}
while (condition);
Best Regards,
Hossein Karimi

Like
Report
*This post is locked for comments