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

Raymond Yam
PRO
Raymond Yam
Pro Student 345 Points

I am trying to print the word Hello, yet I was unable to do so. I have used all formats and included double quotation.

class Program { static void Main() { // Prompt the user for the word "Hello" System.Console.Write("Hello: "); // Print Hello } }

Am I supposed to just put System.Console.Write("Hello: ") here? I used both formats but it is keep giving me an error. Please help.

CodeChallenge.cs
class Program
{
    static void Main()
    {
        // Prompt the user for the word "Hello"
        System.Console.Write("Hello: ");
        // Print Hello
    }
}
Iskander Ismagilov
Iskander Ismagilov
13,298 Points

Use only the command to write "Hello" and don't forget semicolon.

1 Answer

Steven Parker
Steven Parker
170,248 Points

The challenge instructions are: "Write the word "Hello" to the console in the code provided below.". And it provides this starter code:

System.Console.Write();

So all you need to do is add the word as an argument to the call. You will not create a complete program structure around it. And be sure to use the word exactly as given with no punctuation.