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

Code is not working

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

whats wrong?

CodeChallenge.cs
class CodeChallenge
{
    static void Main()
    {
System.Console.Write("Hello");
    }
}
Daniel Tkach
Daniel Tkach
7,607 Points

Just write System.Console.Write("Hello");

No need to make all this a "class", it wouldn't work. After taking some more lessons you'll learn why.

1 Answer

Matthew Musni
Matthew Musni
610 Points

try using System.Console.WriteLine("Hello");

codes are case sensitive