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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here