This commit is contained in:
SimonFJ20 2024-11-22 09:25:03 +01:00
parent 9c967dc6db
commit 1a796c6845

View File

@ -8,6 +8,7 @@ fn add(a, b) {
+ a b
}
fn main() {
let result = 0;
let i = 0;
loop {
@ -17,6 +18,7 @@ loop {
result = add(result, 5);
i = + i 1;
}
}
```
Imagine you were to run the code.