Binding Values
SOURCE CODE
fn main() {
let mut alfa = 1;
let bravo = loop {
println!("alfa is {}", alfa);
if alfa == 10 {
break alfa;
}
alfa += 1;
};
println!("bravo is {}", bravo);
}
fn main() {
let mut alfa = 1;
let bravo = loop {
println!("alfa is {}", alfa);
if alfa == 10 {
break alfa;
}
alfa += 1;
};
println!("bravo is {}", bravo);
}