While Loops

The condition check is built in.

SOURCE CODE

fn main() {
  let mut alfa = 1;

  while alfa <= 5 {
    println!("alfa is {}", alfa);
    alfa += 1;
  }
}

CODE RUNNER