#include <iostream>
using namespace std;

int main() {
    
    int n;
    cin >> n;
    long long factorial = 1;
    
    // write your code here......
    for(int i=1;i<=n;i++){
        factorial=factorial*i;
    }

    cout << factorial << endl;
    
    return 0;
}
全部评论
清华大学的不会这个?
点赞 回复 分享
发布于 2022-02-22 20:47
求阶乘‘’
点赞 回复 分享
发布于 2021-12-31 17:05

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务