Fix the Condition
Oh no! This program has bugs in it. The programmer made some common mistakes with conditions.
The program reads a color from input and checks if it's "blue". Can you find and fix the errors so the program works correctly?
Hint: Look carefully at how the condition is written. Remember, comparing two values uses ==, not =! Also check for missing braces.
rust
use std::io;
fn main() {
let mut input = String::new();
io::stdin().read_line(&mut input).unwrap();
let favorite_color = input.trim();
if favorite_color = "blue" {
println!("Cool color!");
} else
println!("Nice choice!");
}
}