#include <stdio.h>

#include<math.h>

void main()

{

float a,b,c,x,x1;

float m,m1;

printf("enter values of a b and c");

scanf("%f %f %f",&a,&b,&c);

if((b*b)<(4*a*c))

{

m=(-1)*((b*b)-(4*a*c));

m1=sqrt(m);

b=-b/(2*a);

m=m1/(2*a);

printf(" %f+i%f ",b,m);

printf(" %f-i%f ",b,m);

}

else

{

x=((-b)+sqrt((b*b)-(4*a*c)))/(2*a);

x1=((-b)-sqrt((b*b)-(4*a*c)))/(2*a);

}

printf(" %f ",x);

printf(" %f ",x1);

}