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}?
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.