代码来自某网站上的大神~
https://coderbyte.com/results/hyuil:First%20Factorial:Cpp
#include <iostream>
using namespace std;
long FirstFactorial(short const num) {
// code goes here
return num <= 1 ? 1 : num*FirstFactorial(num-1);
}
int main() {
// keep this function call here
cout << FirstFactorial(gets(stdin));
return 0;
}