SPC  Version 0.9.5
 All Files Functions Groups Pages
The do statement

A variant of the while loop is the do-while loop.

The syntax for this control structure is shown below.

do body while (condition)

The difference between a while loop and a do-while loop is that the do-while loop always executes the body at least once, whereas the while loop may not execute it at all.

x = x+1;
y = y*2;
} while(x < 10);