SHIP:Sail:Flow Control:while

From Serious Documentation
Revision as of 14:48, 3 October 2016 by CarltonHeyer (talk | contribs) (Created page with "== See Also == *Sail Home *Flow Control *do == {{SHIP:Sail:Flow_Control:while|while}} == <onlyinclude>L...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See Also

Template:SHIP:Sail:Flow Control:while

Loop control construct that evaluates the condition of the loop before executing it.

Statement Description
Template:Flow Control:while Takes an expression and starts executing in a loop until the control evaluates false.

Example

a = 10; while(a) {

  printf("%d,", a);

}; Prints: 10,9,8,7,6,5,4,3,2,1,