ethos/tests/loop.ethlang
sfja 4f9ea23d84
All checks were successful
Check / Explore-Gitea-Actions (push) Successful in 8s
add strings
2026-03-17 20:24:15 +01:00

23 lines
224 B
Plaintext

// expect: 3
// expect: 8
fn main()
{
let a = 0;
while a < 3 {
a = a + 1;
}
print(a);
while a < 10 {
if a >= 8 {
break;
}
a = a + 1;
}
print(a);
}