Factorial resources from Amazon.com

The following code is a simple non-recursive factorial implementation in C.

int factorial(int x)
{
	int value = 1;
	while (x > 1)
	{
		value *= x * (x - 1);
		x = x - 2;
	}
	return value;
}

Factorial resources from Amazon.com