Loops/While: Difference between revisions

Content added Content deleted
m (→‎Macro: Fixed example to follow demonstration described (1024 to 0))
m (added whitespace before the TOC (table of contents), added other whitespace to the task's preamble.)
Line 1: Line 1:
{{task|Iteration}} [[Category:Conditional loops]] [[Category:Simple]]
{{task|Iteration}} [[Category:Conditional loops]] [[Category:Simple]]
{{omit from|GUISS|No loops and we cannot read values}}
{{omit from|GUISS|No loops and we cannot read values}}

Start an integer value at 1024. Loop while it is greater than 0.
Start an integer value at 1024.

Loop while it is greater than 0.
Print the value (with a newline) and divide it by two each time through the loop.
Print the value (with a newline) and divide it by two each time through the loop.
<br><br>


=={{header|0815}}==
=={{header|0815}}==