C语言,希望大神看看

2025-04-30 00:40:50
推荐回答(1个)
回答1:

float f(float x)
{
float y;
y=x*x*x-16*x+80;
return y;
}
void main()
{
float x;
printf(“please input x= ”);
scanf(“ %f”,&x);
printf(“f(%3.2f) = %3.2f”,x,f(x));
}