I also entered include<math.h> but it still doesnt work. People are saying to enter -Im but im new to this where do I put -Im and how do I fix this.
 #include <stdio.h>
#include <stdlib.h>
#include<math.h>
int main()
{
    float a=0, b=0, c=0, root1=0, root2=0;
    printf("Enter the value of a,b and c to determine the roots\n");
    scanf("%f%f%f",&a,&b,&c);
    root1=(-b+sqrt(b*b-4*a*c))/(2*a);
    root1=(-b-sqrt(b*b-4*a*c))/(2*a);
    printf("The first roots of the quadratic equation are\nFirst root=%.1f\nSecond root=%.1f",root1,root2);
    return 0;
}
 
     
     
    