Enter a number and assign zero as the value for the second number.
Expected Result
When selecting the modulus operation, the program should calculate the remainder of dividing the first number and second number, where if the second number is zero it should return "cannot be divided by zero."
Actual Result
The modulo method is giving the correct answer except when the devisor is zero, it gives an error.
Steps to Reproduce
Expected Result When selecting the modulus operation, the program should calculate the remainder of dividing the first number and second number, where if the second number is zero it should return "cannot be divided by zero."
Actual Result The modulo method is giving the correct answer except when the devisor is zero, it gives an error.