for loop in Rust
The for loop executes the code block for a specified number of times. It can be used to iterate over a fixed set of values, such as an array. <pre><code> fn main(){ for x in 1..11{ // 11 is not inclusive if x==5 { continue; } println!("x is {}",x); } } </code></pre>