+ 2
What does command nextline actually do?
1 Odpowiedź
+ 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! ☺