Loops/While: Difference between revisions

Content added Content deleted
(added haskell attempt; not really loop)
m (Moved to Iteration cat)
Line 1: Line 1:
{{task}}[[Category:Iteration]]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.
{{task|Iteration}}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.


=={{header|Ada}}==
=={{header|Ada}}==