NTTL Function - Product

Description
Compute product = begin * (begin + 1 ) * ... * end
Header
<nttl/product.h>
Signature
template< class T >
void Product( T *Prod, size_t begin, size_t end )
Parameters
Name Type Description
Prod T * A pointer to the variable that will contain the product.
begin size_t The first number in the product.
end size_t The last number in the sequence.
Returns
( none )
Example
#include <nttl/product.h>
...
long p;
Product( &p, 1, 10 );
Notes
Since 1000! is around 2500 decimal digits, begin and end are limited to being scalars. This could be relaxed...