#include <iostream>
using namespace std;
int main()
{
int a,x=1;
cin >> a;
int sum = 1;
for (int i = 1; i <= a; i++,sum++)
{
x = i*x;
}
cout << x;
return 0;
}
oj1004
最新推荐文章于 2024-11-11 20:03:56 发布
#include <iostream>
using namespace std;
int main()
{
int a,x=1;
cin >> a;
int sum = 1;
for (int i = 1; i <= a; i++,sum++)
{
x = i*x;
}
cout << x;
return 0;
}