Arithmetic Operators Flashcards
1
Q
+
A
Addition - Adds values on either side of the operator
ex. a + b = 20
2
Q
-
A
Addition - Adds values on either side of the operator
ex. a - b = 10
3
Q
*
A
Multiplication - Multiplies on either side of the operator
ex a * b = 20
4
Q
/
A
Division - Divides values on either side of the operator
ex a / b = 5
5
Q
%
A
Modulus Operator - Divides left hand operand by right hand operand and returns remainder
ex. b % a will return 0 if b is 20 and a is 10
6
Q
**
A
Exponent - performs exponential calculation on operators a**b will give a to the power of b