s = 0
a = int(input("Введите a1: "))
an = int(input("Введите an: "))
for i in range(a,an+1):
s += i ** 3
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
s = 0
a = int(input("Введите a1: "))
an = int(input("Введите an: "))
for i in range(a,an+1):
s += i ** 3
print(s)