rustlings/exercises/functions/functions2.rs
2021-01-29 20:52:48 +00:00

13 lines
222 B
Rust

// functions2.rs
// Make me compile! Execute `rustlings hint functions2` for hints :)
fn main() {
call_me(3);
}
fn call_me(num: usize) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}
}