answersLogoWhite

0


Best Answer

One way to do it might be like this:

  1. Get / store the integer to be subtracted from, and the integer to subtract-we'll call them A and B.
  2. Decrement A and B by 1 each.
  3. If B = 0, stop. A now contains the result.
  4. If B ≠ 0, decrement A and B by one again.
  5. Repeat from step 3.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is an algorithm for subtracting integers?
Write your answer...
Submit
Still have questions?
magnify glass
imp