SHIP:Sail:Flow Control:do

From Serious Documentation
Revision as of 14:58, 3 October 2016 by CarltonHeyer (talk | contribs)
Jump to: navigation, search

See Also

Template:SHIP:Sail:Flow Control:do

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

Statement Description
Template:Flow Control: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;

}while(a); Prints: 10