17 lines
224 B
Text
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;
|
|
}
|
|
}
|
|
}
|