题解 1151: C语言训练-计算一个整数N的阶乘

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简单的自定义阶乘函数

摘要:解题思路:自定义阶乘函数输出即可。本题目给的数据不大,所以不用考虑大数溢出注意事项:参考代码:#include <stdio.h>int factor(int n){ &nbs……

普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ int a; long long sum = 1; scanf("%d",&a……

直接写就得了

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,n,c=1;    scanf("%d",&n);    for(a=1;a<=n;a++) ……

1151的题解c++

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n,b=1;    cin>>n;    fo……