#include <iostream> using namespace std; typedef long long ll; int main(){ int n; while(cin >> n){ ll fac = 1; for(int i = 1; i <= n; i++){ fac *= i; } cout << fac << endl; } return 0; }
#include <iostream> using namespace std; typedef long long ll; int main(){ int n; while(cin >> n){ ll fac = 1; for(int i = 1; i <= n; i++){ fac *= i; } cout << fac << endl; } return 0; }