Программа:
Python:
N = int(input('N = '))
pr, n = 1, 0
for i in range(1, N + 1):
if i % 5 == 0:
pr *= i
n += 1
if n == 5: break
print(pr)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Программа:
Python:
N = int(input('N = '))
pr, n = 1, 0
for i in range(1, N + 1):
if i % 5 == 0:
pr *= i
n += 1
if n == 5: break
print(pr)