编程题:Square sum
Enter a positive integer n. Calculate the result of the following formula:$$1^{2}+2^{2}+3^{2}+...+n^{2}$$
### Sample Input:
in
4
### Sample Output:
out
30
答案:若无答案欢迎评论
### Sample Input:
in
4
### Sample Output:
out
30
答案:若无答案欢迎评论