• + 0 comments
    #include<iostream>
    
    int factorial(int n){
        if(n==1){return n;}
        return factorial(n-1)*n;
    }
    
    int main(){
        int n;
        std::cin>>n;
        std::cout<<factorial(n);
        return 0;
    }