These operators assign value to a variable after operation is done. Here is the list of such operators:
Arithmetic Operators
- = : Assigns the value of right side to left side. In a=b, the value of b is assigned to a.
- += (Add And) : a+=c is equivalent to a=a+c
- -= (Subtract And): a-=c is equivalent to a=a-c
- *= (Multiply And)
- /=(Divide and)
- %=(Modulo And)
- //= (Floor Division And)
- **=(Exponent And)
Arithmetic Operators
Comments
Post a Comment