rustlings/solutions/02_functions/functions3.rs

11 lines
170 B
Rust
Raw Normal View History

2024-08-17 13:59:00 +01:00
fn call_me(num: u8) {
2024-05-21 01:43:18 +01:00
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}
}
fn main() {
// `call_me` expects an argument.
call_me(5);
}