Sum of Squares
Given a non-negative integer n, compute the sum of the squares of
every integer from 1 to n:
1^2 + 2^2 + 3^2 + ... + n^2
Input
$1 is the path to a file containing a single line with n.
Example:
5
Output
A single integer: the sum of squares from 1 to n.
For the example above:
55
(1 + 4 + 9 + 16 + 25 = 55)
Constraints
nis an integer in[0, 100000].- If
nis0, the sum is0.