rustlings/exercises/functions/functions5.rs
Zerotask 86dccc4ca7
docs(exercises): consistent exercise description
a description starts with the filename, has an optional description and
ends with help information
2021-04-25 11:29:39 +02:00

17 lines
281 B
Rust

// functions5.rs
//
// Make me compile!
//
// If you need help, open the corresponding README.md or run: rustlings hint functions5
// I AM NOT DONE
fn main() {
let answer = square(3);
println!("The answer is {}", answer);
}
fn square(num: i32) -> i32 {
num * num;
}