题目描述 利用泰勒公式求e的值,直到最后一项小于10^(-7)为止。 泰勒公式式为:e=1+1/1!+1/2!+…+1/n! 输入格式 无输入 输出格式 输出e的值,保留小数位数8位 数据规模与约定 时间限制:1s 空间限制:256MB code(代码) #include<bits/stdc++.h> using namespace std; int fac(int x)//求阶乘的函数 {