您好
望采纳、谢
int f(int x){ return x*x-3*x+5;}void fun(int n){ for (int i =1;i<=n;i++) printf("x:%d f(x):%d",i,f(i));}main(){.... fun(20);....}你要程序还是要结果?,程序大体如上
1
111152365321461532856235320