|
Since variables represent numbers, we can
treat them as such and perform operations like addition, subtraction,
multiplication, etc.
If the variable A has the value of 1, we can add 2 to A and get A + 2 which
is equal to 1 + 2 = 3.
If the variable B has the value of 3, we can subtract it from 4 and get 4 -
B which is equal to 4 + 3 = 1.
If the variable B has the value of 5, we can multiply it by 2 get (B x 2) or
2B which is equal to 2 x 5 = 10. |
|