rustlings/exercises/functions/functions2.rs
Zachary Chua f37762c23a Finished first 5 as wel as quiz1
Finished variables, functions, if, move semantics, primitive types as
well as quiz1
2021-05-05 18:16:53 +08:00

13 lines
220 B
Rust

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