// This is a program of quadratic equation ...........
#include<stdio.h>
#include<math.h>
int main()
{
float a,b,c,x1,x2,d;
printf("Enter the value of a, b,
c with space:\t");
scanf("%f %f %f",
&a,&b,&c);
d=b*b-4*a*c;
if(d>0)
{
printf("The result is
imagin");
}
else
{
x1=(-b+sqrt(d)/2.0*a);
x2=(-b-sqrt(d)/2.0*a);
printf("The value for +
:%f",x1);
printf("The value for -
:%f",x2);
}
return 0;
}