Arithmetic Operators

take variables 15 and 10
total 25
difference 5
product 150
quotient 1.5
remainder 5
increment a 15
decrement b 10
pre increment a 17
pre decrement b 8
total += a is ths same as total plus a which is 42
diffence -= a is the same as difference minus a which is -12
product *= a is the same as product x a which is 2550
quotient /= a is the same as quotient / a which is 0.088235294117647
remainder %= b is the same as remainder % b which is 5

Web Exercises front page

martin francis.org

valid xhtml