|
What type of exception is thrown if the user enters a 0 for the divisor? A good answer might be:
An |
Example OutputHere is a part of the program:
Here is some sample output: C:>java DivisionPractice Enter the numerator: Rats You entered bad data. Run the program again. C:>java DivisionPractice Enter the numerator: 12 Enter the divisor: 6 12 / 6 is 2 C:>java DivisionPractice Enter the numerator: 12 Enter the divisor: 0 You can't divide 12 by 0 |
QUESTION 13:Click Here after you have answered the question |