Loops/While: Difference between revisions
Content added Content deleted
No edit summary |
(HolyC) |
||
Line 841: | Line 841: | ||
print n |
print n |
||
modifyIORef r (`div` 2))</lang> |
modifyIORef r (`div` 2))</lang> |
||
=={{header|HolyC}}== |
|||
<lang holyc>U16 i = 1024; |
|||
while (i > 0) { |
|||
Print("%d\n", i); |
|||
i /= 2; |
|||
}</lang> |
|||
=={{header|Icon}} and {{header|Unicon}}== |
=={{header|Icon}} and {{header|Unicon}}== |