RosettaCodeData/Task/Loops-While/Scala/loops-while-1.scala

6 lines
53 B
Scala

var i = 1024
while (i > 0) {
println(i)
i /= 2
}