0

I don't understand Console.ReadLin().

Basically, author used C.RL , but nothing else, later on there is "Console.WriteLine("hello {0}", yourName); basically, can't we do something like "Console.ReadLine(yourName);? if not, is there anyway to not use those {n}?

25th Sep 2016, 12:22 PM
Konrad Sulikowski
Konrad Sulikowski - avatar
1 Answer
+ 1
Console.ReadLine reads input from the console. You could use it to input your name. Then use Console.WriteLine to display it. Console.WriteLine("Hello, "+ yourName); could also work as well. Hope this helps.
9th Oct 2016, 6:59 PM
Hadda Games
Hadda Games - avatar