wel i understand your problem , the small thing that is missing in your code is
" #INCLUDE <MATH.H> header file because of which you are unable to calculate..
1>. " sqrt " function.
2>. " Pow " function so are getting unexpected results..
i am pasting the correct code , just check it out
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
float a,b,c,d,e,f,root,x1,x2,b2;
printf("enter a: ");
scanf("%f",&a);
printf("enter b :");
scanf("%f",&b);
printf("enter c: ");
scanf(" %f",&c);
b2=b*b;
d=(4*a*c);
f=(b2-d);
printf("the value of F is = %f",f);
if(f<0)
{
printf(" error - no real root") ;
return 0;
}
root = sqrt(f);
e=root/(2*a);
x1=((-b)+e);
x2=((-b)-e);
printf("solution =%f\n",x1);
printf("solution =%f\n",x2);
return 0;
}