slige/examples/infinite_loop.slg
2024-12-15 04:24:07 +01:00

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();
}
}