Any queries in above comment below and any problem to be coded let me know...
#include"stdio.h"
#include"math.h"
void main()
{
float a,b,c,k,root1,root2;
printf("Enter a,b,c:");
scanf("%f%f%f",&a,&b,&c);
k=sqrt(b*b-4*a*c);
root1=(-b+k)/(2*a);
root2=(-b-k)/(2*a);
printf("root1=%f\nroot2=%f",root1,root2);
}