mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 18:36:31 +00:00
18 lines
232 B
Plaintext
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
|
|
}
|
|
|