24 lines
322 B
Rust
24 lines
322 B
Rust
fn main() {
|
|
println!("Hello, world!");
|
|
|
|
another_function();
|
|
|
|
another_other_function(7);
|
|
|
|
let num = five();
|
|
|
|
println!("{num}");
|
|
}
|
|
|
|
fn another_function() {
|
|
println!("sneaky function B)");
|
|
}
|
|
|
|
fn another_other_function(x: i32) {
|
|
println!("The number I had was {x}.");
|
|
}
|
|
|
|
fn five() -> i32 {
|
|
5
|
|
}
|