Examples · learn/03-functions · 88 of 339
task-1.solution
tin run examples/learn/03-functions/task-1.solution.tinfn max3(a: int, b: int, c: int): int {
let ab = if a > b { a } else { b }
if ab > c { ab } else { c }
}
fn main() {
print(max3(3, 9, 4))
print(max3(-1, -5, -2))
print(max3(7, 7, 7))
}