Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
October 30, 2020
To Find Sum of Squares
t=int(input("enter the number: "))
s=t*(t+1)*(2*t+1)/6
print("The Sum of squares are %d"%(s))