Print without newline

5.9k Views Asked by At

In BASIC I know of two instructions to print to the screen, PRINT, and WRITE, both of which automatically print strings with a newline at the end. I want to print a string without a newline. How can I do this? I'm using GW-BASIC.

1

There are 1 best solutions below

2
Aurélien Gasser On BEST ANSWER

Using PRINT with a semicolon will not print a new line:

10 REM The trailing semicolon prevents a newline
20 PRINT "Goodbye, World!";

Source: Rosettacode