Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: controllers/calculator.php

Line Number: 37

- 1-800-665-6601
- info@tutorpace.com

Conditions on Negative numbers:

- If the sign of given numbers is same, we can apply proper operation with same sign.
- If the sign of given numbers is different, we can apply the subtraction and put the sign that is having larger number.

Solution: Given Numbers are having same symbols. Apply the Subtraction between them.

-10 – (-4) = -10 + 4 {since (-) × (-) = (+)}

= - 6

Answer is -6

Solution: We have to subtract the number 9 form -5

-5 - (+9) = -5 - 9 {since (-) × (+) = (-)}

= -14

Answer is -14