Answer:
245
Explanation:
This is an accumulator algorithm where the current value of variable sum increases by the square of
sum = 0
When i = 8, sum = 0 + 8² = 0 + 64 = 64
When i = 9, sum = 64 + 9² = 64 + 81 = 145
When i = 10 sum = 145 + 10² = 145 + 100 = 245
Final value of sum = 245