write a python program to print the sum of the following series 1+4+9+16+25+36+ ....... +nth terms
Answers
Answered by
2
Answer:
Explanation:
n=int(input("Enter number of terms"))
i=1
sum=0
while i<=n:
sum=sum+(i*i)
i=i+1
print("SUM="sum)
HOPE THIS WORKS!!!
Similar questions