functions5.rs (196B)
1 // TODO: Fix the function body without changing the signature. 2 fn square(num: i32) -> i32 { 3 num * num 4 } 5 6 fn main() { 7 let answer = square(3); 8 println!("The square of 3 is {answer}"); 9 }
rustlingssolving rustlings ft. dracuxan | |
| git clone [email protected]:dracuxan/rustlings.git | |
| Log | Files | Refs |