Please explain me the error in my c code. The problem was to find the roots of the quadratic equation after allowing the user to enter the values of a, b and c.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
int a, b, c, x, y;
printf ("enter the value of a \n");
scanf (" %d", &a);
printf ("enter the value of b \n");
scanf (" %d", &b);
printf ("enter the value of c \n");
scanf (" %d", &c);
x = ( sqrt(b*b - 4*a*c) -b )/ (2*a);
y = ( b + sqrt(b*b - 4*a*c) * (-1) )/ (2*a);
printf (" %d \n %d", x,y);
return 0;
}