题解 | 计算一个数的阶乘
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long long factorial = 1;
for (int i=n;i>=1;i--)
{
factorial*=i;
}
// write your code here......
cout << factorial << endl;
return 0;
}