The following program calculates and prints the roots of a quadratic equation.
Exercise: compile and execute the program, test the results for different values
of input coefficients, does it always produce correct numbers?
- Select values which do not work and use debugger to find the cause of the run-time error by making the program stop at different locations in the source code and checking the values of the variables.
- Modify program to trap the error. Hint: Use IF
- Modify program to compute more general solution. Hint: Use appropriate KIND.