RosettaCodeData/Task/Loops-While/00DESCRIPTION

28 lines
760 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
{{omit from|GUISS|No loops and we cannot read values}}
2016-12-05 22:15:40 +01:00
;Task:
Start an integer value at   '''1024'''.
Loop while it is greater than zero.
2015-02-20 00:35:01 -05:00
Print the value (with a newline) and divide it by two each time through the loop.
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]]
2016-12-05 22:15:40 +01:00
<br><br>