Write a program that reads a natural number , and prints the result of the following sum:
Input consists of a natural number .
Print the sum of the first squares: .
The summation has a closed formula, so a loop would not be necessary to solve this exercise.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:29:45.922Z
© Jutge.org, 2006–2026.
https://jutge.org