
""" Write a program which can compute the factorial of a given numbers.
The results should be printed in a comma-separated sequence on a single line.

Suppose the following input is supplied to the program:
    8
Then, the output should be:
    40320
"""


number = int(input("\nProvide a number for Factorial calculation, please: "))

def factorial(n):
    if n == 1:
        return n
    else:
        return n * factorial(n - 1)


print("\nAnswer:\n",factorial(number))
