The factorial of the integer argument.

Namespace: TPSA
Assembly: TPSA (in TPSA.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static int factorial(
	int k
)
Visual Basic
Public Shared Function factorial ( _
	k As Integer _
) As Integer
Visual C++
public:
static int factorial(
	int k
)

Parameters

k
Type: System..::..Int32
The argument whose factorial is to be computed.

Return Value

The factorial

Exceptions

ExceptionCondition
[OverflowException]The factorial overflows the integer data type.

See Also