Question: how to solve quadratic equation in c programming?
Answer: #include<stdio.h> #include<math.h> int main(){ float a,b,c; float d,root1,root2; printf("Enter quadratic equation in the format ax^2+bx+c: "); scanf("%fx^2%fx%f",&a,&b,&c); d = b * b - 4 * a * c;