#include<bits/stdc++.h> using namespace std; int n; int f(int x) { if(x==1) return 1; else return f(x-1)*x; int main() { cin>>n; n=f(n); cout<<n; return 0; }| | | | :----------: | :----------: | | | | | | |