summaryrefslogtreecommitdiff
path: root/exercises/functions/functions3.rs
blob: b2e90f6d9fa14268d86e3f9b91e0f815f73d0a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// functions3.rs
// Make me compile! Execute `rustlings hint functions3` for hints :)

fn main() {
    call_me();
}

fn call_me(num: i32) {
    for i in 0..num {
        println!("Ring! Call number {}", i + 1);
    }
}