mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 07:46:32 +00:00
25 lines
299 B
Plaintext
25 lines
299 B
Plaintext
fn add(a: int, b: int) -> int {
|
|
a + b
|
|
}
|
|
|
|
fn main() -> int {
|
|
let result = 0;
|
|
|
|
let a = 0;
|
|
let b = a;
|
|
let c = b;
|
|
let d = c;
|
|
|
|
|
|
let i = c;
|
|
loop {
|
|
if i >= 10 {
|
|
break;
|
|
}
|
|
result = add(result, 5);
|
|
i = i + 1;
|
|
}
|
|
result
|
|
}
|
|
|