Escolar Documentos
Profissional Documentos
Cultura Documentos
Write a program to solve the quadratic equation ax2 + bx + c = 0 fully, delivering explicitly one of the
four possible solutions:
1. One single real root
2. Repeated real root
3. Two distinct real roots
4. Two complex roots
Your program should read in the coefficients a, b and c, and then proceed to find the solutions.
Some possible dialogues (underlined texts are user inputs):
You should test your program with different inputs, not just those shown in the examples above.
For submission, your file name should be your name. Submit your C program only. The first line of
your program should be a comment line containing your name.