n=int(input("Ingrese un número positivo: "))
print("                   ")
p=1
for i in range(1,n+1):
    p=p*i
print("El factorial del número", n, "es:",p)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: