题目内容:
以下程序中,函数fun的功能是计算x2-2x+6,主函数中将调用fun函数计算,请填空。y1=(x+8)2-2(x+8)+6y2=sin2(x)-2sin(x)+6 #include "math.h"double fun(double x){ return();}main(){double x,y1,y2; printf("Enter x:"); scanf("%1f,&x); y1=fun(8+x); y2=fun(); printf("y1=%1f,y2=%1f\n",y1,y2);}
参考答案: