Beginner's Programming Tutorial in QBasic

(Kiana) #1

A string can be added to the end of an existing variable string.
X$ = "Hello"X$ = X$ + "World"
PRINT X$
Output:
HelloWorld


You can also add variable strings together.
a$ = "String1"b$ = "String2"
c$ = "String3"
d$ = a$ + b$ + c$
PRINT d$
Output:
String1String2String

Free download pdf