Quick actions

cmd+k|ctrl+k

Navigation

Languages

Loop

Snippet info

Language

Rust

Visibility

public

Author

complex.alpha.work

Created

2026-04-25T12:09:27.099165Z

Updated

2026-04-25T12:10:14.85922Z

fn main() {

    let index = 10;
    
    for index in 1..20 {
        println!("for01:{}", index);
    }
    
    println!("index:{}", index);
    
    for index in 1..index {
        println!("for02:{}", index);
    }
    
}
INFO