RosettaCodeData/Task/Loops-While/Sparkling/loops-while.sparkling

6 lines
56 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
var i = 1024;
while i > 0 {
print(i);
i /= 2;
}