← Problem book: C Lesson 38 of 96 · 10 XP

Sum of squares

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

You are given n (n ≥ 1). Print the sum 1² + 2² + … + n².

Example

Input:

3

Output:

14

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.