RosettaCodeData/Task/Loops-While/Chapel/loops-while.chapel

6 lines
74 B
Plaintext

var val = 1024;
while val > 0 {
writeln(val);
val /= 2;
}