'commit'
This commit is contained in:
15
TangDou/LuoGuBook/P5739.cpp
Normal file
15
TangDou/LuoGuBook/P5739.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int f(int n) {
|
||||
if (n == 1) return 1;
|
||||
return n * f(n - 1);
|
||||
}
|
||||
|
||||
int main() {
|
||||
int n;
|
||||
cin >> n;
|
||||
cout << f(n) << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user