I am a newbie in python, idk how to do the following question, please help.....
Many programming languages implement a function called divmod() (short for division and modulo), which returns both the quotient and the remainder when dividing two positive numbers using floor division.
The relationship among the 4 numbers can be described by the following formula:
=×+
Write a program to take inputs for the dividend and divisor of a division from user, and use a for loop to find the corresponding quotient and remainder without using /, *, //, %, and divmod(). In other words, you are only allowed to use the operators for addition and subtraction in your code.
Assume that you input 45 for the dividend and 7 for the divisor, print your result as following:
Input a positive integer for the dividend: 45
Input a positive integer for the divisor: 7
45 divided by 7 yields:
quotient: 6
remainder: 3
The code should work correctly if one entered another sets of value.