+ 2

What does command nextline actually do?

7th Jun 2018, 11:17 AM
Aarnav Saxena
Aarnav Saxena - avatar
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! ☺
7th Jun 2018, 11:29 AM
Andre Daniel
Andre Daniel - avatar