What does command nextline actually do? | Sololearn: Learn to code for FREE!

+2

What does command nextline actually do?

6/7/2018 11:17:23 AM

Aarnav Saxena

2 Answers

New Answer

+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! ☺