web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Do while loop

Hossein.K Profile Picture Hossein.K 6,648
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

Comments

*This post is locked for comments