e0/examples/conditions.e0

12 lines
127 B
Text
Raw Normal View History

2022-04-06 11:20:47 +00:00
fn main() -> int {
let x = 5;
if x < 3 {
return 3;
} else if x > 10 {
return 10;
} else {
return x;
}
}