Write a program to print the following series. [5] 1 + 4 + 9 + 16……. 100 = ?
Answers
Answered by
1
Explanation:
sum = 0
for i in range(100):
sum = sum + (i+1)**2
print("The sum of the seies = ", sum)
Similar questions