mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-06-15 00:04:58 +02:00
Update Exercises Directory Names to Reflect Order
This commit is contained in:
16
exercises/02_functions/functions3.rs
Normal file
16
exercises/02_functions/functions3.rs
Normal file
@ -0,0 +1,16 @@
|
||||
// functions3.rs
|
||||
//
|
||||
// Execute `rustlings hint functions3` or use the `hint` watch subcommand for a
|
||||
// hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
call_me();
|
||||
}
|
||||
|
||||
fn call_me(num: u32) {
|
||||
for i in 0..num {
|
||||
println!("Ring! Call number {}", i + 1);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user