Can someone distinguish between Write() and WriteLine() methods?? In detail | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone distinguish between Write() and WriteLine() methods?? In detail

13th Nov 2020, 2:22 PM
Joyce
Joyce - avatar
1 Answer
+ 3
WriteLine() method adds a new line character at the end after printing given string. Which means anything now you print, will start from a new line. Whereas Write() method does not provide new line at the end. Everything you print now, will be shown in the current line only.
13th Nov 2020, 2:40 PM
Letsintegreat
Letsintegreat - avatar