Sum of Squares
Easy · rating 850 · Math
Read an integer n. Print 1² + 2² + … + n².
Constraints: 1 ≤ n ≤ 106
Related problems
- Array Sum — Easy
- Digital Root — Easy
- Even Numbers Up To N — Easy
- Last Digit — Easy
- Shopping Cart Total — Easy
- Sum of Cubes — Easy