Assignments From While Loops
TODO: Figure out if you can do this or not.
SOURCE CODE
fn main() { let mut alfa = 1; let bravo = while alfa <= 5 { println!("alfa is {}", alfa); alfa += 1; alfa * 2 }; println!("bravo is {}", bravo); }
TODO: Figure out if you can do this or not.
fn main() { let mut alfa = 1; let bravo = while alfa <= 5 { println!("alfa is {}", alfa); alfa += 1; alfa * 2 }; println!("bravo is {}", bravo); }