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.
Print without newline
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
Yes, that is correct and I gave you credit for that. However, it doesn't work in Business Basic. Please see this URL: :documentation.basis.com/BASISHelp/WebHelp/commands2/… –
Orthohydrogen
Just found out that in Business Basic instead of using a semicolon (;) we have to use a comma (,) –
Orthohydrogen
© 2022 - 2024 — McMap. All rights reserved.