题解列表
1151: C语言训练-计算一个整数N的阶乘
摘要:###[题目传送门](https://www.dotcpp.com/oj/problem1151.html)
------------
###思路
用一个循环把sum从一乘到n,最后输出……
阶乘求和(C++解决办法)
摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){ int n; ……
[编程入门]阶乘求和的Python解法
摘要:解题思路:注意事项:参考代码:n=int(input())Sn=0a=1for i in range(1,n+1): a*=i Sn+=aprint(Sn)……
Sn的公式求和(c++解决办法)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int sn=0; ……