C# C# Basics (Retired) Perform if / else

What am I doing wrong?

Can someone please help.

CodeChallenge.cs
string language = Console.ReadLine();

if(language == "C#")
{
  System.Console.WriteLine("C# Rocks!");
}
else
{
  System.Console.WriteLine(language + "is not C#.");
}

1 Answer