Control flow / Conditional statements / match statements

let str: &str;
let monitor_inch_size = 24;
match monitor_inch_size {
    15 => str = "too small",
    16..=18 => str = "good for the past decade",
    19..=23 => str = "for office work",
    24..=27 => str = "great choice",
    _ => str = "",
}
//str is "great choice"

println!("str is '{str}'");