23 lines
280 B
Plaintext
23 lines
280 B
Plaintext
|
import std;
|
||
|
|
||
|
|
||
|
print("Counting down...");
|
||
|
var from = 10;
|
||
|
let to = 0;
|
||
|
while from > to {
|
||
|
print(from);
|
||
|
from = from - 1;
|
||
|
}
|
||
|
print("Done!");
|
||
|
|
||
|
print("Counting up...");
|
||
|
var start = 0;
|
||
|
let stop = 10;
|
||
|
while start < stop {
|
||
|
print(start);
|
||
|
start = start + 1;
|
||
|
}
|
||
|
print("Done!");
|
||
|
|
||
|
|