#include <math.h>
#include<conio.h>
#include<conio.h>
main()
{
float a,b,c,d,x1,x2;
printf(
"enter a,b,c");
scanf("%f%f%f",&a,&b,&c);
d=b*b-4*a*c;
if (d<0)
printf("the roots are imaginary");
else if
(d==0)
printf("roots are equal");
printf("and they are %f",-b/2*a);
else
{
x1=(-b+pow(d,0.5))/(2*a));
x2=(-b-pow(d,0.5))/(2*a));
printf("first root is=%f";x1);
printf("second root is=%f";x2);
}
getch();
}