Write a program that reads a natural number
,
and prints the result of the following sum:
Input
Input consists of a natural number
.
Output
Print the sum of the first
squares:
.
Observation
The summation has a closed formula, so a loop would not be necessary
to solve this exercise.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.