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,6 +8,7 @@ fn add(a, b) {
|
|||||||
+ a b
|
+ a b
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn main() {
|
||||||
let result = 0;
|
let result = 0;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
loop {
|
loop {
|
||||||
@ -17,6 +18,7 @@ loop {
|
|||||||
result = add(result, 5);
|
result = add(result, 5);
|
||||||
i = + i 1;
|
i = + i 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Imagine you were to run the code.
|
Imagine you were to run the code.
|
||||||
|
Loading…
Reference in New Issue
Block a user