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;
}
}
The condition check is built in.
fn main() {
let mut alfa = 1;
while alfa <= 5 {
println!("alfa is {}", alfa);
alfa += 1;
}
}