#include <stdio.h>

int a, b, c, d;

void main()
{
scanf("%d %d %d", &a, &b, &c);
d = b * b - 4 * a * c;
if (d > 0)
printf("The equation %d x^2 + %d x + %d has the real roots.\n", a, b, c);
else if (d < 0)
printf("The equation %d x^2 + %d x + %d has the imaginary roots.\n", a, b, c);
else
printf("The equation %d x^2 + %d x + %d has the multiple root.\n", a, b, c);
}

+ Recent posts