blob: d22aa6c8b9ba90c0499b03dd865f11d0f04a7b5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// functions5.rs
// Make me compile! Execute `rustlings hint functions5` for hints :)
// I AM NOT DONE
fn main() {
let answer = square(3);
println!("The answer is {}", answer);
}
fn square(num: i32) -> i32 {
num * num;
}
|