编写程序,输出1*2*3*……*n的值

编写程序,输出123……n的值


def mul(n):
    if n == 1:
        return n
    return n * mul(n - 1)

print("1*2*3*...10={}".format(mul(10)))