A bug occurs when the second number entered by the user is zero because a divide-by-zero error.
When a user enters zero (0) as the second number, show all the other operations as usual. However, instead of calculating and displaying the quotient for division, display the message: Dividing by zero is not a number.
A bug occurs when the second number entered by the user is zero because a divide-by-zero error.
When a user enters zero (
0) as the second number, show all the other operations as usual. However, instead of calculating and displaying the quotient for division, display the message:Dividing by zero is not a number.