Write a program that solves the quadratic equation

a x² + b x + c = 0 for any a, b, and c.

First calculate the discriminant D and print how many solutions the equation has. Then print the solutions.

As extensions calculate the maximum or minimum point and define an UDG for the superscript 2 for to print the equation nicely.

Facebook entry

https://en.wikipedia.org/wiki/Quadratic_equation

## Quadratic Equations [Beginners Practise]

**Moderator:** Programming Moderators