Design a function called intdiv() which takes a dividend and a divisor as parameters and returns the result and remainder (2 integers) as a tuple. E.G. given 9/2 equals 4 remainder 1: 9 is the...


Design a function called intdiv() which takes a dividend and a divisor as parameters and returns the result and remainder (2 integers) as a tuple. E.G. given 9/2 equals 4 remainder 1:
9 is the dividend, 2 is the divisor (parameters), 4 is the result and 1 is the remainder (values returned as a tuple).
Write program statements which test this function by calling it twice with different parameters, and printing the returned values each time.



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here