• 2022-06-07
    有以下程序: #include double f(double x);main(){ double a =0;int i; for(i=0;i<30;i+=10) a+=f((double)i); printf("%3.0f\n",a);}double f(double x){ return x*x+1;}程序的运行结果是( )
    A: 5050
    B: 401
    C: 503
    D: 1404