functions

This commit is contained in:
2026-09-07 08:08:30 +03:00
parent d04b26e5f3
commit 1f869d5cc8
18 changed files with 75 additions and 24 deletions
+8 -2
View File
@@ -1,4 +1,10 @@
fn call_me(num: u8) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}
}
fn main() {
// DON'T EDIT THIS SOLUTION FILE!
// It will be automatically filled after you finish the exercise.
// `call_me` expects an argument.
call_me(5);
}