functions 5

This commit is contained in:
Paul Scarrone 2023-02-20 13:16:16 -05:00
parent c2f6821d53
commit 362817b15a

View File

@ -1,13 +1,11 @@
// functions5.rs
// Execute `rustlings hint functions5` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
let answer = square(3);
println!("The square of 3 is {}", answer);
}
fn square(num: i32) -> i32 {
num * num;
num * num
}