Professional Documents
Culture Documents
in Small Basic
Lesson 2
Variable
A variable is a storage location that uses a symbolic
name associated with a value. An example is when
you want to create a program that requires saving
data in the computer’s memory. A variable serves
as the container where your inputs are entered. In
Small Basic, variables are the primary method for
moving information around the program.
Rules in naming
You can use a combination of letters,variables
numbers, and
underscores.
1. Parentheses or brackets.
2. Exponents and roots
3. Multiplication and division
4. Addition and subtraction
Practice your
PEMDAS
1. 2+2+4+4-10 = 6. 8+(2+1)2 =
2. 2x(3+1) = 7. 2+(6x52+3)=
3. 18/2-4 = 8. 5x5x5+4-10=
4. 8+8-8-8 = 9. 2x3+9/3=
5. 6/3+6x2 = 10. 5+ [-1(-2-1)]2 =