This Question has been **Answered**

Featured Replies

- 1
Line 8 initialising b to 0 means that at line 9 you get a divide by zero error while trying to get the remainder after dividing a by b. Read More

- 1
The problem is that, just as with division, taking the modulo of a number by zero is undefined; what you are actually getting is a division by zero exception, as internally, both division and modulo (or rather, strictly speaking, remainder) are calculated using the same assembly instruction. Thus, this is … Read More

This question has already been answered. Start a new discussion instead.

Recommended Topics