关于定积分~错哪儿了?急~# include # define N 100# define F(x) (x)*(x)*(x)float sab(float a,float b){ float h,sum=0; scanf("%f%f",&a,&b); h=(b-a)/N; for(;a

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 17:37:50
关于定积分~错哪儿了?急~#include#defineN100#defineF(x)(x)*(x)*(x)floatsab(floata,floatb){floath,sum=0;scanf("%f

关于定积分~错哪儿了?急~# include # define N 100# define F(x) (x)*(x)*(x)float sab(float a,float b){ float h,sum=0; scanf("%f%f",&a,&b); h=(b-a)/N; for(;a
关于定积分~错哪儿了?急~
# include
# define N 100
# define F(x) (x)*(x)*(x)
float sab(float a,float b)
{ float h,sum=0;
scanf("%f%f",&a,&b);
h=(b-a)/N;
for(;a

关于定积分~错哪儿了?急~# include # define N 100# define F(x) (x)*(x)*(x)float sab(float a,float b){ float h,sum=0; scanf("%f%f",&a,&b); h=(b-a)/N; for(;a
float sab(float a,float b) 函数里多了一个scanf("%f%f",&a,&b);