Loops/While: Difference between revisions

→‎{{header|blz}}: Stop the final iteration (so it doesn't print 1/2)
(Add example for blz)
(→‎{{header|blz}}: Stop the final iteration (so it doesn't print 1/2))
Line 295:
=={{header|blz}}==
<lang blz>num = 1024
while num >= 1 # blz will automatically cast num to a fraction when dividing 1/2, so this is necessary to stop an infinite loop
print(num)
num = num / 2