mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 19:16:35 +00:00
add main
This commit is contained in:
parent
9c967dc6db
commit
1a796c6845
@ -8,14 +8,16 @@ fn add(a, b) {
|
|||||||
+ a b
|
+ a b
|
||||||
}
|
}
|
||||||
|
|
||||||
let result = 0;
|
fn main() {
|
||||||
let i = 0;
|
let result = 0;
|
||||||
loop {
|
let i = 0;
|
||||||
|
loop {
|
||||||
if >= i 10 {
|
if >= i 10 {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
result = add(result, 5);
|
result = add(result, 5);
|
||||||
i = + i 1;
|
i = + i 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user