a = b = 0
c = 1
for i in range(1,30001):
if str(i)[-1] == '7':
a += 1
b += i
c *= i
print('Количество:', a)
print('Сумма:', b)
print('Произведение:', c)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
a = b = 0
c = 1
for i in range(1,30001):
if str(i)[-1] == '7':
a += 1
b += i
c *= i
print('Количество:', a)
print('Сумма:', b)
print('Произведение:', c)