#include <iostream>
int fact(int n){
if(n==0){
return 1;
}
int sum = n*fact(n-1);
return sum;
}
int main() {
int n;
std::cin>>n;
int res = fact(n);
std::cout<<res<<std::endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: