C# C# Basics (Retired) Console I/O Say Hello!

Hermes Crespo
Hermes Crespo
980 Points

What is wrong with this code I wrote?? I do not see ANY error. However, I keep getting the message that it is wrong .

This is very frustrating for me as I have complied my answer code of this challenge in an C# IDE and it executed flawlessly.... So why is the Treehouse site insisting that my code is incorrect????

CodeChallenge.cs
class CodeChallenge
{
      static void Main()
      {
            System.Console.Write("Hello");
      }
}

1 Answer

Jennifer Nordell
STAFF
Jennifer Nordell
Treehouse Staff

Hi there! You're doing great, but it's important in these challenges to not do anything that is not explicitly asked by the challenge. They have already set up a class and a Main method for you.

The solution to this is simply one line of code, which is already present in your answer :smiley:

Hope this helps! :sparkles: