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

Write the word " Hello" to the console in the code provided.

The code seems like correct but it is not working properly.

CodeChallenge.cs
using system;
namespace HelloWorld
{
    class Hello
        {
            static void main()
            {
            Console.WriteLine("Hello");
            }
        }
}
Christian Mateo
Christian Mateo
3,945 Points

I believe you are missing the Console.ReadKey() call. Example:

static void main()
{
     Console.WriteLine("Hello");
     Console.ReadKey();
}

1 Answer

Steven Parker
Steven Parker
171,904 Points

You won't need "ReadKey" for this challenge. And you also won't need a "using" directive, namespace, class, or method.

All you're being asked to do here is fill in the argument to the call initially provided.