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

error CS1525: Unexpected symbol `else'

So this is my code for the quiz it says error CS1525: Unexpected symbol `else'

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

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

1 Answer

It looks like you added a ';' to the end of "if(language == "C#");". Removing it should fix your problem.