求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/06 08:28:15
求e^x的近似值#include#includeintcheng(intn){ints=1;for(;n!=0;n--)s*=n;returns;}intmain(){doublex,sum=1.00
求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