rustlings/exercises/functions/functions3.rs
2023-01-03 18:11:33 +01:00

16 lines
267 B
Rust

// functions3.rs
// Execute `rustlings hint functions3` or use the `hint` watch subcommand for a hint.
fn main() {
let n:i32 = 200;
call_me(n as u32);
}
fn call_me(num: u32) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}
}