#include<bits/stdc++.h>
using namespace std;
int fac(int x){
if(x==0) return 1;
else return x*fac(x-1);
}
int main(){
int x;
cin>>x;
cout<<fac(x);
}
08-11
1265
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-12
321
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交