Advertisement
c00per007

Untitled

Dec 6th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Set quotient to 0
  2. Align leftmost digits in dividend and divisor
  3. Repeat
  4. If that portion of the dividend above the divisor is greater than or equal to the divisor
  5. Then subtract divisor from that portion of the dividend and
  6. Concatentate 1 to the right hand end of the quotient
  7. Else concatentate 0 to the right hand end of the quotient
  8. Shift the divisor one place right
  9. Until dividend is less than the divisor
  10. quotient is correct, dividend is remainder
  11. STOP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement