Respuesta :

In computer programs, algorithms and flowcharts are used as prototypes of an actual program

The algorithm

The algorithm of the program is as follows:

  • Input a, b, c
  • Calculate d using d = b*b - 4 * a * c
  • If d < 0, print "Complex roots"
  • Else
  • Calculate x₁ using x₁ = (-b + sqrt(d))/4 * a * c)
  • Calculate x₂ using x₂ = (-b - sqrt(d))/4 * a * c)
  • Print x₁ and x₂
  • End

The flowchart

This is always in represented using a diagram

See attachment for the flowchart.

Read more about flowchart and algorithms at:

https://brainly.com/question/16763367

#SPJ1

Ver imagen MrRoyal