Computer Science, asked by mahima7447090363, 1 year ago

to find out a program in C for D =b×b-4×a×c equation write a algorithm​

Answers

Answered by RewelDeepak
0

Answer:

Program to Find Roots of a Quadratic Equation. #include <math.h> double a, b, c, discriminant, root1, root2, realPart, imagPart; printf("Enter coefficients a, b and c: "); scanf("%lf %lf %lf", &a, &b, &c); discriminant = b * b - 4 * a * c; // condition for real and different roots. if (discriminant > 0) {

Similar questions