To find the sum of squares of the first 100 natural numbers in python
Answers
Answered by
26
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))
Answered by
7
Answer:
yrr Muja bhi answer nhi Mila
Explanation:
I really want this
Similar questions
History,
7 months ago
Math,
1 year ago
Business Studies,
1 year ago
Chemistry,
1 year ago
Physics,
1 year ago