n = int(input('n = '))
total = 0
for i in range(3, n + 1, 3):
total += i #тоже самое что и : total = total + i
print(total)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
n = int(input('n = '))
total = 0
for i in range(3, n + 1, 3):
total += i #тоже самое что и : total = total + i
print(total)