214 - Square Summation
Square Summation
Time Limit: 1 sec
The Problem
Make a simple program that read one variable named N. Calculate the summation of the squares of the first N integer number(12 + 22 + 32 +…+N2).
The Input
The input file contain one integer number N (N<30).
The Output
Output will show the summation of the squares of the first N integer numbers.
Sample Input
20
Sample Output
2870
Problem Setter: Nezam Uddin
Special thanks to Shahin ShamS