#include<bits/stdc++.h> using namespace std; int main() { int n,i,s=1; cin>>n; for(i=1;i<=n;i++) { s=s*i; } cout<<s; return 0; } /************************************************************** Problem: 1004 User: ccf Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/