n = int(input())
factorial = 1
for i in range(2, n+1):
factorial *= i
print(factorial)
pr = 1
for i in range(1,21):
pr *= i
print("Произведение чисел от 1 до 20:", pr)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input())
factorial = 1
for i in range(2, n+1):
factorial *= i
print(factorial)
pr = 1
for i in range(1,21):
pr *= i
print("Произведение чисел от 1 до 20:", pr)