2018-02-21 22:09:53 -08:00
|
|
|
// functions5.rs
|
2019-11-11 16:51:38 +01:00
|
|
|
// Make me compile! Execute `rustlings hint functions5` for hints :)
|
2015-09-18 20:28:27 -04:00
|
|
|
|
2019-11-11 13:38:24 +01:00
|
|
|
// I AM NOT DONE
|
|
|
|
|
2015-09-18 20:28:27 -04:00
|
|
|
fn main() {
|
|
|
|
let answer = square(3);
|
|
|
|
println!("The answer is {}", answer);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn square(num: i32) -> i32 {
|
|
|
|
num * num;
|
|
|
|
}
|