e0/examples/conditions.e0

12 lines
127 B
Plaintext

fn main() -> int {
let x = 5;
if x < 3 {
return 3;
} else if x > 10 {
return 10;
} else {
return x;
}
}