Example:
PRINT "Hello, this is Reinier's QBasic page"
Output:
Hello, this is Reinier's QBasic page
Example #1:
PRINT "Reinier"
PRINT "QBasic"
Output:
Reinier
QBasic
Example #2:
PRINT "Reinier";
PRINT "QBasic"
Output:
ReinierQBasic
Example #3:
PRINT "Reinier",
PRINT "QBasic"
Output:
Reinier [a certain amount of spaces, depending on the screen you're using] QBasic
You can also connect PRINT commands, like so:
PRINT "Text"{;|,}"Text2"{;|,}"Text3" and you can go on forever.
Example #1:
PRINT 7
Output:
7
Example #2:
PRINT 5+2
Output:
7
Note that you don't need " when printing numerical values. By the way, + is addition, - is subtraction, * is mulltiplication, and / is division.
You can of course link multiple numerical values and strings (strings are text entries).
Example:
PRINT "Reinier is";(6+20)/2;"years old.","QBasic"
Output:
Reinier is 13 years old. [certain amount of spaces] QBasic
Note that the spaces before and after the '13' are added automatically.
End of lesson 1.