Write a python program to execute the following statement with a given input
n = 5
def factorial(n):
    if n == 0:
        return 1
    else:
        return n*factorial(n-1)
      
result = factorial(5)
print(result)