12345n = int(input('n = '))result = 1for x in range(1, n + 1): result *= xprint('%d! = %d' % (n, result))