问题
填空题
以下程序通过函数sunFun求
。这里f(x)=x2+1
main( )
printf("The sum=%d\n",SunFun(10));
SunFun(int n)
int x,s=0;
for(x=0;x<=n;x++) s+=F( ______ );
return s;
F( int x)
return ______);
答案
参考答案:x*x+1
解析: 本题中F( )函数实现表达示f(x) =x2+1,SunFun( )函数实现循环累加F(0)...F(10)的值因此______填x,______填x*x+1。