RosettaCodeData/Task/Loops-While/Brat/loops-while.brat

6 lines
58 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
i = 1024
while { i > 0 } {
p i
i = (i / 2).to_i
}