SHIP:Sail:Flow Control:do

From Serious Documentation
Jump to: navigation, search

See Also

do

A loop control construct that guarantees the loop executes at least one time.

Statement Description
do Starts a loop control which executes once before being evaluated for termination via while statement.

Example

a = 10;
do {
   printf("%d,", a);
   if(a == 10)
      break;
   a -= 1;
}while(a);

Prints: 10