Calculates the factorial of a given number for integer values greater than 0.
A positive integer to calculate the factorial of.
The factorial of the given number.