RosettaCodeData/Task/Loops-While/Blz/loops-while.blz

6 lines
175 B
Plaintext

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
end