slige/examples/example_2.slg
2024-12-11 12:36:19 +01:00

18 lines
232 B
Plaintext

fn add(a: int, b: int) -> int {
+ a b
}
fn main() -> int {
let result = 0;
let i = 0;
loop {
if >= i 10 {
break;
}
result = add(result, 5);
i = + i 1;
}
result
}