Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
11787 徐一喆 函数求阶乘 C++ Accepted 1 MS 724 KB 160 2021-05-17 18:11:34

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b=1; cin>>a; for(int i=1;i<=a;++i) { b*=i; cout<<b<<" "; } return 0; }