QUESTION

(6).Write a program to compute and display the roots of a quadratic equation of the form ax2+bx+x. If b2-4ac results a negative answer, print IMAGINARY ROOTS. If b2-4ac gives a positive result, print REAL AND DISTINCT ROOTS. If b2-4ac=0, print EQUAL ROOTS.

Enter the Value of A:
Enter the Value of B:
Enter the Value of C:
The roots of a quadratic equation:

CopyRights@2023 Code-CODO.online.All Rights Reserved