Prints the factorial of a given non-negative integer.