e0/examples/conditions.e0

12 lines
119 B
Text
Raw Normal View History

2022-04-06 11:20:47 +00:00
fn main() -> int {
2022-07-18 02:00:19 +00:00
let x = 25;
2022-04-06 11:20:47 +00:00
2022-07-18 02:00:19 +00:00
if x < 10 {
2022-04-06 11:20:47 +00:00
return 10;
2022-07-18 02:00:19 +00:00
} else if x > 50 {
return 50;
2022-04-06 11:20:47 +00:00
}
return 65;
2022-04-06 11:20:47 +00:00
}