Computer Science, asked by iamsahil441, 2 months ago

develop an algorithm to find square root of a quadratic equation

Answers

Answered by tinkik35
1

Answer:

Algorithm to find all the roots of a quadratic equation

  1. Input the value of a, b, c.
  2. Calculate k = b*b - 4*a*c.
  3. If (d < 0) Display "Roots are Imaginary, calculater1 = (-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) ...
  4. Print r1 and r2.
  5. End the algorithm.
Similar questions