Solving Quadratic Equations in C - Code with C
https://www.codewithc.com/solving-quadratic-equations-in-c/
WebJun 14, 2022 · Solving Quadratic Equations in C: #include<stdio.h> #include<math.h> //for sqrt() function. main() { float a,b,c,dis,r1,r2;//a,b,c are constant coefficients, dis= discriminant and r1,r2 are roots. printf ("\nQuadratic Equation is of the form: ax^2 + bx + c = 0 \n"); printf("\nEnter the values of a, b and c: "); scanf("%f %f %f",&a,&b,&c);
DA: 86 PA: 96 MOZ Rank: 85