+ 1

Help (Why doesn't console.writeline not work?)

I'm new to Sololearn and C#. So the first thing I do is write a "Console.WriteLine("Hello World");" But nothing shows up.

26th Apr 2019, 10:40 PM
Kevin Lin
Kevin Lin - avatar
3 Respostas
+ 1
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Console.WriteLine("hello world"); } } }
26th Apr 2019, 10:51 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
What coding enviroment do you use ? Sololearn playground or Visual Studio ? If it is the sololearn playground can you post a link to the code.
27th Apr 2019, 8:19 PM
sneeze
sneeze - avatar
0
to use the 'Console.WriteLine', you need to use the namespace 'System'. using System; otherwise you should use 'System.Console.WriteLine("hellow world")'.
28th Apr 2019, 5:55 AM
Gayan Charith Elgiriya
Gayan Charith Elgiriya - avatar