Assign means to allocate. Assignment operators are used to assigning values to the variable or to perform operations. Assignment operators have special symbols for each function.
The variable is the operand, as the operator operates on the variable to assign the values.
                = |
  Assigns values from right side to left side. |
  += Add |
  It adds the right value to the left value and assigns the result to the left operand.. |
  -= Subtract |
  It subtracts the right value from the left value and assigns the result to the left variable. |
  *= Multiply |
  It multiplies the right operand with the left value assigning the result to the left operand. |
  /= Divide |
  It divides the left operand with the right value assigning the result to the left operand. |
  %= Modulus |
  It takes modulus using two values(operands) and assign the result to the left operand. |
  **= Exponent |
  Performs exponential (power) calculation on operators and assigns value to the left variable. |
  //= Floor Division |
  It performs floor division on operators and assigns value to the left variable. |
5
7
0
2
8
|