How do you code integer division without using divider ('/')
Anónimo
You iteratively perform subtractions, which is all that division is. If there is a remainder, you multiply it by 10 and repeat your iterative subtractions. The number of times you need to subtract is represented in a counter, which becomes the digits within the result.