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

Jagadeesh S
Jagadeesh S
2,653 Points

Print "C# Rocks!" if language equals "C#" otherwise print language + " is not C#." So if I entered "Cheese" then "Cheese

I cannot submit the answer

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

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

1 Answer

The grader is probably not accepting your answer because you do not have a space before the word "is" , so your output would look like : Cheeseis not C#. Just insert a space before "is" and your code should be accepted.