Create a Python program that accepts an integer and displays its factorial.
num=5
def factorial(num):
    result = 1
    for i in range(1, num+1):
        result *= i
    return result

n = int(input("Enter an Integer: "))
print(factorial(n))