ethos/tests/loop.ethlang
sfja 086bea3e89
All checks were successful
Check / Explore-Gitea-Actions (push) Successful in 46s
add vim line to tests
2026-04-13 09:39:58 +02:00

26 lines
267 B
Rust

// 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);
}
// vim: syntax=rust commentstring=//\ %s