Do..while Loop
Do..while is similar to the while loop, but it will run the code block once before checking the condition. Syntax:
do { // run code } while(condition);
Here's a working example:
do { i=i+1; } while(i < var2);
Remember to put a semicolon after the while statement.