mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 23:06:32 +00:00
25 lines
269 B
Plaintext
25 lines
269 B
Plaintext
|
|
fn ten_times() {
|
|
for (let i = 0; i < 10; i += 1) {
|
|
}
|
|
}
|
|
|
|
fn twenty_times() {
|
|
let i = 0;
|
|
loop {
|
|
if not (i < 20) {
|
|
break;
|
|
}
|
|
i += 1;
|
|
}
|
|
}
|
|
|
|
|
|
fn main() {
|
|
loop {
|
|
ten_times();
|
|
twenty_times();
|
|
}
|
|
}
|
|
|