# computing a factorial
# using library functions

import math

for i in range(1,10):
    f = math.factorial(i)
    print(f"{i}! = {f}")

# Output:
# 1! = 1
# 2! = 2
# 3! = 6
# 4! = 24
# 5! = 120
# 6! = 720
# 7! = 5040
# 8! = 40320
# 9! = 362880
