e0/examples/conditions.e0
2022-07-17 21:00:19 -05:00

17 lines
224 B
Text

fn main() -> int {
let x = 25;
if x < 10 {
return 10;
} else if x > 50 {
return 50;
} else {
if x < 20 {
return 20;
} else if x > 40 {
return 40;
} else {
return x;
}
}
}