+ 2
What does command nextline actually do?
2 Antworten
+ 2
@Aarnav Saxena See the following examples. In this case, '_' represents where the cursor is.
write("Hello");
write(" World");
[Outputs: Hello World_]
The comand write just displays text and leaves the cursor on the same line.
writeln("Hello");
writeln(" World");
[Outputs: Hello
World
_]
The command writeln displays text and moves cursor to the next line.
Hope this explains! ☺