rust-book/functions/src/main.rs

11 lines
199 B
Rust
Raw Normal View History

2019-01-30 14:25:30 -05:00
fn main() {
println!("Hello, world!");
another_function(5, 6);
}
fn another_function(x: i32, y: i32) {
println!("The value of x is: {}", x);
println!("The value of y is: {}", y);
}