Computer Science, asked by viwidifiwndmkf, 13 hours ago

Write program to find the roots of a quadratic equation of the form ax²+bx+c=0 .

If the result of b2-4ac is negative, then print "Roots are imaginary"

If the result of b2-4ac is equal, then print "Roots are equal"

If the result of b2-4ac is positive, then print "Real and distinct roots"

And calculate the root1 and root2 Root1, Root2=-b+√b2-4ac/2a​

Answers

Answered by anonymous9350
4

Answer:

yeah here is the program for finding roots. Hope it helps you

Attachments:
Similar questions