
Raymond Yam
Pro Student 345 PointsI 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.
class Program
{
static void Main()
{
// Prompt the user for the word "Hello"
System.Console.Write("Hello: ");
// Print Hello
}
}
1 Answer

Steven Parker
205,160 PointsThe 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.
Iskander Ismagilov
13,298 PointsIskander Ismagilov
13,298 PointsUse only the command to write "Hello" and don't forget semicolon.