C# C# Basics Perfect if / else if / else

Bummer: I entered "21". I expected "Just right." but got "Just right" instead.

How should i pass this?

CodeChallenge.cs
string input = Console.ReadLine();
int temperature = int.Parse(input);
if (temperature < 21) {
    Console.WriteLine("Too cold!");
}
else if (temperature == 21 || temperature == 22) {
    Console.WriteLine("Just right");
}
else {
    Console.WriteLine("Too hot!");
}

1 Answer

you are doing well... use "Just right." instead of "Just right".. (dot is missing)

Console.WriteLine("Just right.");

Thanks, i should analyze more , get angry less