0
"Console.WriteLine(Hello World);" no output for this, why?
5 Answers
+ 8
WriteLine("Hello World")
"Hello World" is a string, you should enclose it with quotation marks.
+ 3
I'm no C# expert, sorry can't help.
0
tried that too still no output
0
no problem thanks thou.
0
Yes you need the double quations marks because your outputting a string of more than one characters so... Console.WriteLine("Hello World"); should work, but i should mention one more thing. If you are running this program in a program like Visual Studio you might notice the terminal console opens and closes right away. Try adding
Console.ReadLine();
Underneath your WriteLine, it will keep the terminal window open until a button is pressed.