total = 0
for i in range(1, int(input('n = ')) + 1, 2):
total += i
print('Сумма -', total)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
total = 0
for i in range(1, int(input('n = ')) + 1, 2):
total += i
print('Сумма -', total)