All right, but I'm still getting problems. Whatever numbers I use as input, the two numbers I get as output are always 0.000000 and 0.000000. I'm not sure why, maybe it's my mathematical formatting? Here:

Code:

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float a,b,c,d,e,f;
int main()
{
printf("The format for a quadratic equation is ax^2+bx+c=0.\n");
printf("This should solve a quadratic equation.\n");
printf("Enter the A variable.\n");
scanf("%f",&a);
printf("Enter the B variable.\n");
scanf("%f",&b);
printf("Enter the C variable.\n");
scanf("%f",&b);
if(2*a!=0)
{
d=sqrt(b*b-4*a*c);
e=(-b+d)/(2*a);
f=(-b-d)/(2*a);
printf("X equals %f and %f.\n",&e,&f);
}
else
{
printf("No real number solution.\n");
}
system("PAUSE");
return 0;
}

If any of you know why this doesn't work please tell me why.

Thanks a lot...

Raytro2