Visual C++ - Loop with condition at the end: do while

Condition testing is done at the end of the loop. consequently, the loop is performed at least once. after each iteration the condition is tested, if it is was true. if the specified condition is true, then the loop will continue run, otherwise it will be completed.

do while


do statement while (condition);
Used keywords: do while


Note: Here usable statements:
break statement continue statement


Visual C++ .NET

Even one example in what situations we can use the operation loop with condition at the end:
do --i; while ( i > 0);
do {
  if (i==5)
} while ( i <10);

Visual C++ .NET

Other pieces of example codes:
do --i; while ( i > 0);
Loop with condition at the end in another programming language:
Differences to:
Languages: en hu cz sk