fn add(a: i32, b: i32) -> i32 { a + b } fn main() { let sum = add(3, 4); println!("3 + 4 = {}", sum); }
Click Run to execute this code.