Hydrogen-python/test4.hy
2025-06-19 09:42:46 +08:00

20 lines
260 B
Hy
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// test4嵌套 if 判断复杂控制流
fn max(x: i32, y: i32) -> i32 {
if x >= y {
return x;
} else {
return y;
}
}
fn main() {
i32 a;
i32 b;
i32 c;
a = 10;
b = 20;
c = max(a, b);
return c;
}