Initial commit
This commit is contained in:
10
exercises/02_functions/functions2.rs
Normal file
10
exercises/02_functions/functions2.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
// TODO: Add the missing type of the argument `num` after the colon `:`.
|
||||
fn call_me(num: i32) {
|
||||
for i in 0..num {
|
||||
println!("Ring! Call number {}", i + 1);
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
call_me(3);
|
||||
}
|
||||
Reference in New Issue
Block a user