#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
float a,b,c,disc,root1,root2;
clrscr();
printf("Input values of a,b,and c\n");
scanf("%f %f %f", &a,&b,&c);
disc = b*b - 4*a*c;
if(disc<0)
printf("\n\n ROOTS ARE IMAGINARY\n");
else
{
root1 = (-b + sqrt(disc))/(2.0*a);
root2 = (-b - sqrt(disc))/(2.0*a);
printf("\n\nroot1 = %5.2f\n\nroot2 = %5.2f\n",root1,root2);
}
getch();
}