NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables 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.

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