Loops
Moving this back in the stack since while and for loops are much more common
SOURCE CODE
fn main() {
let mut alfa = 1;
loop {
println!("alfa is {}", alfa);
if alfa == 10 {
break;
}
alfa += 1;
}
}
Moving this back in the stack since while and for loops are much more common
fn main() {
let mut alfa = 1;
loop {
println!("alfa is {}", alfa);
if alfa == 10 {
break;
}
alfa += 1;
}
}