algorithm to enter numerator and denominator and find quotient and remainder without using modulus operator
Answers
Answered by
2
Explanation:
Algorithm to find quotient and remainder using modulus Operator.
Step1-
Start
Step2-
Accept numerator, denominator, quotient, reminder, temp variables
Step3-
Initialize quotient=0, remainder=0, temp=0
Step4-
While temp < numerator
then
Add temp and denominator and assign it to numerator
increment quotient
Step5-
Substract denominator from
numerator. And assin it to remainder
Step6-
Print quotient
Print remainder
Step7-
Stop
Hope it will help
Similar questions
Social Sciences,
6 months ago
Math,
1 year ago