C语言程序设计程序填空题,跪求大神解答~!~!~!

2025-01-05 04:14:44
推荐回答(1个)
回答1:

scanf("%lf %lf %d",&a,&b,&n);

printf("梯形法求积分结果:%lf\n", integral(a,b,n));

double f(double x)就是你的f(x)函数,随便写就行吧