1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-04-04 22:24:20 +02:00

9 lines
136 B
Rust
Raw Normal View History

fn main() {
let answer = square(3);
2022-07-12 11:08:29 +02:00
println!("The square of 3 is {}", answer);
}
fn square(num: i32) -> i32 {
num * num;
}