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

Here we have to divide ‘10’ by ‘2’ hence 10 will be in the numerator and 2 in the denominator.

Hence dividing the given two integers, the expression looks like this 10/2

To divide these two numbers, we can clearly see that it is going to be an exact division since ‘10’ is a multiple of ‘2’.

Hence the remainder is going to be ‘0’.

Here we have to divide ‘18’ by ‘-3’ hence 18 will be in the numerator and -3 in the denominator.

Hence dividing the given two integers, the expression looks like this 18/-3

Here again, 18 is the multiple of ‘3’ hence the remainder = 0.

Here we have only one negative sign in the given division hence the final answer will also have a negative sign.