# Calculating the factorial of an given argument "n"
# Mathematical formula:
# n! = 1.2.3...(n-2).(n-1).n
def factorial(n):
    if n <= 1:
        return 1

    return n*factorial(n-1)

print(factorial(5))
# OUTPUT: 120
print(factorial(0))
# OUTPUT 1
print(factorial(1))
# OUTPUT:1

# Calculating the factorial of an given argument "n"
# Mathematical formula:
# n! = 1.2.3...(n-2).(n-1).n
def factorial(n):
    if n <= 1:
        return 1

    return n*factorial(n-1)

print(factorial(5))
# OUTPUT: 120
print(factorial(0))
# OUTPUT 1
print(factorial(1))
# OUTPUT:1

# Calculating the factorial of an given argument "n" # Mathematical formula: # n! = 1.2.3...(n-2).(n-1).n # OUTPUT: 120 # OUTPUT 1 # OUTPUT:1