Done variables

This commit is contained in:
Metehan Ünal 2022-12-21 21:06:59 +03:00
parent 23889d41bb
commit cb08494f2b
2 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,11 @@
// functions1.rs
// Execute `rustlings hint functions1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
call_me();
}
fn call_me(){
}

View File

@ -1,13 +1,13 @@
// functions2.rs
// Execute `rustlings hint functions2` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
call_me(3);
}
fn call_me(num:) {
fn call_me(num:i32) {
for i in 0..num {
println!("Ring! Call number {}", i + 1);
}