for loop in Rust



examples/loops/for-loop/src/main.rs
fn main() {
    for ix in 1..5 {
        println!("count {}", ix);
    }
    println!();
    for ix in 1..=5 {
        println!("count {}", ix);
    }
}

count 1
count 2
count 3
count 4

count 1
count 2
count 3
count 4
count 5