0
i didn't understand the difference between concole.write and writeline
2 ответов
+ 6
Console.WriteLine() prints out the text you put in, and then sets the cursor to the next line. It's like if you typed something in a text editor and then pressed Enter.
Console.Write() prints out the text, but the cursor stays in the same place. It won't add any spaces or new lines.
+ 4
.write() is a static method that write the argument and stay on the same line. With. Writeline() the method print the argument and go in the line under!
The difference is just layout thing