- #1
beanryu
- 92
- 0
I wrote the following "program"
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
printf("enter a number");
scanf("%FL,&x_one");
y = pow(x,3.0) - 4.0*x + 1.0;
printf("%d",y);
return 0;
}
could anyone tell me why I can't get a correct result from this?
What had I done wrong with the pow(power) operation?
THANX!
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
printf("enter a number");
scanf("%FL,&x_one");
y = pow(x,3.0) - 4.0*x + 1.0;
printf("%d",y);
return 0;
}
could anyone tell me why I can't get a correct result from this?
What had I done wrong with the pow(power) operation?
THANX!