RosettaCodeData/Task/Loops-While/Blz/loops-while.blz
2023-07-01 13:44:08 -04:00

5 lines
175 B
Text

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