Find the roots of a quadratic equation.
#include <math.h> #include <stdio.h> void main() { double a, b, c, d, root1, root2, realPart, imagPart; printf(“Enter coefficients a, b and c: “); scanf(“%lf %lf %lf”, &a, &b, &c); d = b * b – 4 * a * c; if (d > 0) {… Read More »Find the roots of a quadratic equation.