2 Answers
New Answer@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! ☺
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message