program computes the factorial of the provided number
update