Beginner's Programming Tutorial in QBasic

(Kiana) #1

Also, you can use multiple variables in your program.
X = 82Y = 101
Z = 79
PRINT XPRINT Y
PRINT Z
Output:
82


(^10179)
( NOTE: The memory addresses of these variables are not necessarily as specified)


Expressions


If you pass an expression to a variable, the expression is evaluated and the variable is set to that
value.
x = 500 + (10 * 7)
PRINT x
Output:
570

Free download pdf