factorial

ABSTRACT

Calculates the factorial of the input value

PARAMETERS
xthe input value
RETURN

the factorial of the input value

DECLARATION
func factorial(x)