Write a program that calculates the sum of squares of numbers from 1 to n.
EasyProblem Statement
Write a program that calculates the sum of squares of numbers from 1 to n.
Sample Input
n = 3
Sample Output
14
Limits
Time: 2s · Memory: 256 MB
Write a program that calculates the sum of squares of numbers from 1 to n.
n = 3
14
Time: 2s · Memory: 256 MB