9 lines
106 B
Plaintext
9 lines
106 B
Plaintext
|
let x = 10;
|
||
|
|
||
|
// simulate do..while using loop
|
||
|
loop {
|
||
|
print(x);
|
||
|
x = x - 1;
|
||
|
if x <= 0 { break; }
|
||
|
}
|