Any statement dividing a digit by zero crashes the compiler output window. Should be something better I think. Either a message is displayed in that window, or, if dividing by zero is completely useless, then should be forbidden, which means, an error should occur rather than a warning.
Personally, I am of the opinion that the answer should be the same number that is being divided by zero, because the value remains undeterred, and if there is a remainder, it is also equal to the original value that was being divided by zero, which again can happen only if dividing by zero.
Log in to post a comment.