Math operators and more variables.
Ok math operators...
So math operators are like in real life.
When you do math you use math operators.
So math operators are like in real life.
When you do math you use math operators.
Operators+
-
*
/
|
InformationThe + operator adds values together. Ex: numbers=6+6 This will add the values together and give 12.
The - operator substracts values. Ex: numbers=6-5 This will substract the values and give 1.
The * operator multiplies values. Ex: numbers=9*9 This will multiply the values and give 81.
The / operator divides values. Ex: numbers=100/10 This will divide the values and give 10.
|
There is more but we will learn about those in the next section.
Varibles cannot just contain strings, numbers, booleans or other variables.
It can contain a math operation.
The variable will execute the math operation and store the anwser.
Varibles cannot just contain strings, numbers, booleans or other variables.
It can contain a math operation.
The variable will execute the math operation and store the anwser.