1234567891011121314151617
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int n; while(cin>>n) { int fact = tgamma(n+1); cout<<fact<<endl; } return 0;
12345678910111213141516
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int n; while(cin>>n) { cout<<tgamma(n+1)<<endl; } return 0;