I am curious what would happen if you have a number such as 2 (10 in binary) and divide by 0 (0 in binary). What would happen?
In the simplest versions it would enter an infinite loop because you repeatedly subtract divisor from the dividend until the dividend until the dividend is zero and count how many subtractions took place. But if the divisor is zero then the dividend never reaches zero so it continues trying forever:
In better versions this is caught with a special case.