✅ What's the difference between "Write" and "WriteLine" in C#
i honestly dont get it, it looks the same, it acts the same. Whats the difference?
4 Replies
Write does not move you to the next line
WriteLine moves you to the next line after writing whatever u told it to
This will print to the screen:
All in the same line.
However if you do:
It will print
You can also read more about both methods in the docs here
Console.Write
Console.WriteLine
thank you so much!!
$close
If you have no further questions, please use /close to mark the forum thread as answered