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

View File

@ -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;
if >= i 10 { loop {
break; if >= i 10 {
break;
}
result = add(result, 5);
i = + i 1;
} }
result = add(result, 5);
i = + i 1;
} }
``` ```