Questions
Write a program that allows the user to specify values for A, B, and C, and returns the larger of the two roots of a quadratic equation A*x*x + B*x + C = 0. Simultaneously, if an error occurs, the program should catch that error and print an error message.
1. Codes
1 | import java.util.Scanner; |
2. Outputs:
1 | Please enter A: |