def get_factorial(x):
    """
    Calculate the factorial of integer
    input:
        x:integer
    return:factorial(阶乘)
    """
    dat = int(x)
    p = 1
    if dat != 0:
        for i in range(1,dat+1):
             p *= i 
    return p