#Write a function to calculate and return the factorial of a number
#(a non-negative integer).

def fact(n):
  if n == 1:
    return 1

  f = n*fact(n-1)
  return f

n = int(input("Enter number: "))
res = fact(n)
print(res)

543d2750ed615de9d5c296925efd8d180b25ae63
<mask token>

def fact(n):
    if n == 1:
        return 1
    f = n * fact(n - 1)
    return f


<mask token>

def fact(n):
    if n == 1:
        return 1
    f = n * fact(n - 1)
    return f


<mask token>
print(res)

def fact(n):
    if n == 1:
        return 1
    f = n * fact(n - 1)
    return f


n = int(input('Enter number: '))
res = fact(n)
print(res)

#Write a function to calculate and return the factorial of a number
#(a non-negative integer).

def fact(n):
  if n == 1:
    return 1

  f = n*fact(n-1)
  return f

n = int(input("Enter number: "))
res = fact(n)
print(res)
