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

PROGRAMMING:Finding the sum of squares of a sequence

Luz5年前 (2021-05-10)题库507
Please write a program, input positive integer $$n $$and calculate the sum of squares $$s = 1 ^ 2 + 2 ^ 2 + 3 ^ 2 + \ cdots + n ^ 2 $$.
####Input format
> $$n$$
####Output format
> $$s$$
####Input sample
```in
nine
```
####Output sample
```out
two hundred and eighty-five
```







answer:If there is no answer, please comment
This problem should not write cycle, should use square sum formula.