Олимпиадный тренинг

Задача 38687. Sum of squares


Задача

Темы: Цикл for
Given a positive integer n, compute the sum \(1^2+2^2+...+n^2\).

Input
A single natural number n is entered, not exceeding 100.

Imprint
You need to display  the calculated amount.

Examples
# Input Output
1 2 5