+ 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

28th Mar 2017, 3:55 PM
Wanzet 222
Wanzet 222 - avatar
2 Answers
+ 17
It works perfectly fine? Just copy-and-pasted it into C.Playground and it compiled without problems.
28th Mar 2017, 4:04 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Thanks for answers! I just made a mistake nConsole.Writeline, that's not correct! Correct is Console.WriteLine!
28th Mar 2017, 4:27 PM
Wanzet 222
Wanzet 222 - avatar