Computer Science, asked by sam93243, 9 months ago

algorithm to enter numerator and denominator and find quotient and remainder without using modulus operator​

Answers

Answered by charlie1505
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