RosettaCodeData/Task/Loops-Do-while/00DESCRIPTION

27 lines
760 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
Start with a value at 0. Loop while value mod 6 is not equal to 0.
Each time through the loop, add 1 to the value then print it.
The loop must execute at least once.
2015-11-18 06:14:39 +00:00
2018-06-22 20:57:24 +00:00
;Related tasks:
*   [[Loop over multiple arrays simultaneously]]
*   [[Loops/Break]]
*   [[Loops/Continue]]
*   [[Loops/Do-while]]
*   [[Loops/Downward for]]
*   [[Loops/For]]
*   [[Loops/For with a specified step]]
*   [[Loops/Foreach]]
*   [[Loops/Increment loop index within loop body]]
*   [[Loops/Infinite]]
*   [[Loops/N plus one half]]
*   [[Loops/Nested]]
*   [[Loops/While]]
2019-09-12 10:33:56 -07:00
*   [[Loops/with multiple ranges]]
*   [[Loops/Wrong ranges]]
2018-06-22 20:57:24 +00:00
2015-11-18 06:14:39 +00:00
;Reference:
* [[wp:Do while loop|Do while loop]] Wikipedia.
2018-06-22 20:57:24 +00:00
<br><br>