Like the += operator, −= subtracts a number from a variable.
myVar =
myVar − 7;
will subtract 7 from myVar. This can be rewritten as:
myVar −=
7;
Exercices
Convert the assignments for a, b, and c to use the −= operator.
= a - 6
;
= b - 15
;
= c - 1
;