So in C# what is the difference between Console.Write and Console.WriteLine because I'm having trouble correlating between them. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So in C# what is the difference between Console.Write and Console.WriteLine because I'm having trouble correlating between them.

Stuff about C#

10th Dec 2019, 12:11 PM
Grablin
2 Answers
0
WriteLine means after printing value on console cursor will go on next line.
10th Dec 2019, 12:16 PM
A͢J
A͢J - avatar
0
In other words, WriteLine simply add "\n" to your text, that's it.
10th Dec 2019, 12:58 PM
coddy
coddy - avatar