fn main() { let temperature = 22; if temperature > 30 { println!("It's hot outside!"); } else if temperature > 15 { println!("Nice weather today."); } else { println!("Bring a jacket."); } }
Click Run to execute this code.