n = int(input("Введите число N: "))
for i in range(1, n+1):factorial = 1for j in range(1, i+1):factorial *= jprint(f"Факториал числа {i} = {factorial}")
n = int(input("Введите число N: "))
for i in range(1, n+1):
factorial = 1
for j in range(1, i+1):
factorial *= j
print(f"Факториал числа {i} = {factorial}")