C# C# Basics (Retired) Perform if

Adam Tyler
Adam Tyler
5,368 Points

Using If

Why won't my code pass the challenge? I can't see what is wrong with it.

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

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

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 50,933 Points

Remove the semicolon from here

if(language == "C#");
Adam Tyler
Adam Tyler
5,368 Points

Ahh! Thank you!