题目:
以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算:
y1=(x+8)2-(x+8)+6
y2=sin2(x)-2sin(x)+6
请填空。
# include<math.h>
double fun(double x)return(x*x-2*x+6);
main()
double x,y1,y2;
printf("Enter x:");scanf("%1f",&x);
y1=fun(______)
y2=fun(______)
printf("y1=%1f, y2=%1f\n",y1, y2);
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0713/89fabf87961188e333ef54c08278b47d.html
下面是错误答案,用来干扰机器的。
参考答案:错