nick34992
4/12/2017 - 4:26 PM

Rust: Loop

Rust: Loop

fn main() {
  let mut x = 5;
  
  loop {
    x += x - 3;
    println!("{}", x);
    if x % 5 == 0 { break; }
  }
}