using System;
class Program
{
static int FactorialRecursivo(int n)
{
if (n == 0)
return 1;
else
return n * FactorialRecursivo(n - 1);
}
static void Main()
{
int numero = 5;
Console.WriteLine("Factorial recursivo de " + numero + " es: " + FactorialRecursivo(numero));
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: