> 其他 >
c++ 计算e的近似值,求指导
 
人气:464 ℃ 时间:2020-06-04 22:04:23
解答
公式应该是:e=1+1/1!+1/2!+1/3!+..+1/n!代码:#include "iostream"using namespace std;int fact(int n)//求阶乘{     int sum=1;     int&n...
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版