mirror of https://github.com/rust-lang/rustlings
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
239 B
Rust
15 lines
239 B
Rust
7 years ago
|
// functions2.rs
|
||
1 year ago
|
//
|
||
|
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a
|
||
|
// hint.
|
||
9 years ago
|
|
||
|
fn main() {
|
||
|
call_me(3);
|
||
|
}
|
||
|
|
||
4 years ago
|
fn call_me(num:) {
|
||
9 years ago
|
for i in 0..num {
|
||
|
println!("Ring! Call number {}", i + 1);
|
||
|
}
|
||
|
}
|