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

PROGRAMMING:Never thought of it or never thought of it

Luz5年前 (2021-05-10)题库384
Hello everyone, I'm not Wang Dahui. I never thought that I had worked in the company for 50 years. Before I died, I saw God again. God brought me another problem. Let me calculate the sum of squares from 1 to N. if n = 3, the sum of squares is 1 ^ 2 + 2 ^ 2 + 3 ^ 2 = 14. If I can solve this problem, it won't be long before I can raise my salary, become the general manager, become the CEO, marry Bai Fumei, and go to the top of my life. Ha ha, I'm still a little excited. Smart acmer, can you help me figure out that this is the sum of numbers?
###Input format:
Enter an N in the first line, where n is less than 45
###Output format:
Output the sum of squares, one line for each sum.
###Input example:
Here is a set of inputs. For example:
```in
three
```
###Output example:
The corresponding output is given here. For example:
```out
fourteen
```







answer:If there is no answer, please comment