def factorial(n): if(n==0 or n==1): return 1; else: return n*factorial(n-1) n=int(input()) print(factorial(n))
To embed this program on your website, copy the following code and paste it into your website's HTML: