Easy
Sum of Squares (Generator Expression)
Read n and print the sum of i² for i = 1..n, using a generator expression.
Input
One integer.
Output
The sum.
Sample 1
Input
3
Output
14
Sample 2
Input
1
Output
1
Output appears hereOne integer.
The sum.
3
14
1
1
Output appears here