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