Assignment Operators

OperatorDescriptionExampleResult
=Assignmenta = 1Variable a is set to 1
+=Addition Assignmenta += 3Variable a is set to a + 3
-=Subtraction Assignmenta -= 3Variable a is set to a - 3
*=Multiplication Assignmenta *= 3""
/=Division Assignmenta /= 3""

9 / 19