Write a python program to find the sum of squares of first 100 numbers
Answers
Answered by
2
Answer:
The task is to find 1^2 + 2^2 + 3^2 + ….. + 100^2.
def squaresum(n) :
sm = 0
for i in range(1, n+1) :
sm = sm + (i * i)
return sm
n = 100
print(squaresum(n))
Similar questions