86dccc4ca7
a description starts with the filename, has an optional description and ends with help information
17 lines
281 B
Rust
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;
|
|
}
|