while loop in Rust
* While. The while loop executes the instructions each time the condition specified evaluates to true * Loop. The loop is a while(true) indefinite loop <pre><code> fn main(){ let mut x = 0; while x < 10{ x+=1; println!("inside loop x value is {}",x); } println!("outside loop x value is {}",x); } </code></pre>