-->
当前位置:首页 > 题库

编程题:Square sum

Luz3年前 (2022-12-12)题库2032
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











答案:若无答案欢迎评论