Page 120 - ConceptGP_C8_Fb
P. 120
/= Division It divides left operand with the right operand x /= 3
assignment and assigns the result to left operand. x/=3 is
equivalent to x=x/3.
%= Remainder It takes modulus of two operands and assigns x %= 3
assignment the result to left operand. x%=3 is equivalent to
x=x%3.
//= Floor division It performs floor division on operators and x //= 3
assignment assigns the value to the left operand. x//=3 is
equivalent to x=x//3.
**= Exponentiation It performs exponential (power) calculation x **= 3
assignment on operators and assigns the value to the left
operand. x**=3 is equivalent to x=x**3.
Program 2: To perform all the assignment operators.
The output of the above program is:
118 Premium Edition-VIII

