Q7. 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: