#include<stdio.h>
#include<math.h>
int main()
{
	int a,b,c;
	float root1,root2,disc;
	printf("\nEnter three numbers:");
	scanf("%d %d %d",&a,&b,&c);
	disc=b*b-4*a*c;
	if (disc==0)
	{	
	printf("\nthe roots are real and equal");
	root1=root2=-b/(2.0*a);
	printf("The root1 is %f and root2 is %f \n",root1,root2);
   }
  else if(disc>0)
  {
  printf("\nThe roots are real and different");
  root1=(-b+sqrt(disc))/(2.0*a);
  root2=(-b-sqrt(disc))/(2.0*a);
  printf("\nThe root1 is %f and root2 is %f \n",root1,root2);
}
  else 
  {
  printf("\nthe roots are imaginary");
  }
  return 0;
	
}