Assign result of conditional to variable
examples/booleans/assign-result-to-variable/src/main.rs
fn main() { let x = 3; let y = 4; let z = x < y; println!("{}", z); let z = x > y; println!("{}", z); }
true false
fn main() { let x = 3; let y = 4; let z = x < y; println!("{}", z); let z = x > y; println!("{}", z); }
true false