Computer Science, asked by sulochanajagatapu, 7 months ago

write an algorithm to compute the roots of a quadratic equation ​

Answers

Answered by jaya6190
1

Answer:

Algorithm to find all the roots of a quadratic equation

Input the value of a, b, c.

Calculate k = b*b - 4*a*c.

If (d < 0) Display "Roots are Imaginary, calculater q 1 = (-b +i ? k)/ 2a and r2 =(b + i? k)/ 2a. else if (d = 0) Display "Roots are Equal" and calculate r1 = r2 = (-b / 2*a) ...

Print r1 and r2.

End the algorithm

Similar questions