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

6 lines
56 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
var i = 1024;
while i > 0 {
print(i);
i /= 2;
}