def factorial_recursivo(n):
    if n == 0:
        return 1
    else:
        return n * factorial_recursivo(n - 1)

numero = 5
print(f"Factorial recursivo de {numero} es: {factorial_recursivo(numero)}")

Embed on website

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