blob: f1b63f480b2c71ca2e26a50ea4a7fd7ca76590df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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;
}
|