a = int(input("a = "))
b = int(input("b = "))
for i in range(a,b+1):
print(i*i*i)
Пример:
a = 2
b = 5
8
27
64
125
a = int(input("a = "))
b = int(input("b = "))
for i in range(a,b+1):
print(i*i*i)
Пример:
a = 2
b = 5
8
27
64
125