//Solution of Quadratic Equation
#include <stdio.h>
#include <math.h>
int main(){
float a, b, c, discriminant, root1, root2;
printf("Input values of a, b, c\n");
scanf("%f %f %f", &a, &b, &c);
discriminant= b*b-4*a*c;
if (discriminant<0)
    printf("Roots are Imaginary");
else{
    root1= (-b+sqrt(discriminant))/(2*a);
    root2= (-b-sqrt(discriminant))/(2*a);
    printf("\n\nRoot1= %5.2f\n\nRoot2= %5.2f", root1, root2);
}
return 0;
}