#include <stdio.h>

int ft_recursive_factorial(int nb)
{
	if (nb < 0)
		return 0;

	if (nb <= 1)
		return 1;

	return nb * ft_recursive_factorial(nb - 1);
}

int main(void)
{
	printf("%d", ft_recursive_factorial(0));
}

Embed on website

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