Find a div m and a mod in whena) a = -111, m =99.________________b) a = -9999, m = 101.________________c) a = 10299, m = 999.________________d) a = 123456, m = 1001.

Solution:Step 1In mathematical form, we can writealso,) a div m gives the quotient q when a number a is divided by another number m.Anda mod m gives the remainder r when a number a divided by another number m.Where, remainder r is always positive.In above problems we have to find a div m and a mod m, where value of a and m is given.