52736
Решил на Python:
Код:
in_all = 0
for i in range(103):
value = 2 + i * 10
in_all += value
if i == 0:
print(f'First value is {value}')
elif i == 102:
print(f'Last value is {value}')
print(f'Sum is {in_all}')
Вывод:
First value is 2
Last value is 1022
Sum is 52736