Construct a python program that takes a positive integer as input and outputs its factorial
Input Number: 5
def factorial(inp):
    if inp == 0:
        return 1
    else:
        return inp*factorial(inp-1)