adopt , The function of the test
""" author:claire data:2022 year 06 month 23 title = Factorial of numbers """
def factorial(n):
result = 1
for i in range(n,1,-1):
result *= i
print(result)
return result
n = int(input())
if n<0:
print("error")
elif n == 0:
print("0 The factorial of is 1")
else:
print(f"{
n} The factorial of is {
factorial(n)}")