+ 1
Mystic of c#
I wrote a code using tutorial. That's original code from tutorial that works well: 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) { string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); Console.WriteLine("Hello {0}", yourName); } } } Why it don't work
2 Answers
+ 17
It works perfectly fine? Just copy-and-pasted it into C.Playground and it compiled without problems.
+ 1
Thanks for answers! I just made a mistake nConsole.Writeline, that's not correct! Correct is Console.WriteLine!