求e^x的近似值#include#includeint cheng(int n){int s=1;for(;n!=0;n--)s*=n;return s;}int main(){double x,sum=1.000000,b;int n,k;scanf("%lf %d",&x,&n);for(k=1;k
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 02:46:11
求e^x的近似值#include#includeint cheng(int n){int s=1;for(;n!=0;n--)s*=n;return s;}int main(){double x,sum=1.000000,b;int n,k;scanf("%lf %d",&x,&n);for(k=1;k
求e^x的近似值
#include
#include
int cheng(int n){
int s=1;
for(;n!=0;n--)
s*=n;
return s;
}
int main(){
double x,sum=1.000000,b;
int n,k;
scanf("%lf %d",&x,&n);
for(k=1;k
求e^x的近似值#include#includeint cheng(int n){int s=1;for(;n!=0;n--)s*=n;return s;}int main(){double x,sum=1.000000,b;int n,k;scanf("%lf %d",&x,&n);for(k=1;k
#include#includeint cheng(int n){ int s=1; for(;n!=0;n--) s*=n; return s;}intmain(){ double x,sum=1.000000,b; int n,k;scanf("%lf %d",&x,&n); for(k=1;k
acasdasvefsdfcwsfsdfasdas