Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set quotient to 0
- Align leftmost digits in dividend and divisor
- Repeat
- If that portion of the dividend above the divisor is greater than or equal to the divisor
- Then subtract divisor from that portion of the dividend and
- Concatentate 1 to the right hand end of the quotient
- Else concatentate 0 to the right hand end of the quotient
- Shift the divisor one place right
- Until dividend is less than the divisor
- quotient is correct, dividend is remainder
- STOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement