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

PROGRAMMING:Find the sum of 1 + (1 + 2) + (1 + 2 + 3) +... + (1 + 2 + 3 +... + n)

Luz5年前 (2021-05-10)题库365
Find the sum of 1 + (1 + 2) + (1 + 2 + 3) +... + (1 + 2 + 3 +... + n)
###Input format:
Enter an integer.
###Output format:
Output the sum.
###Input example:
Here is a set of inputs. For example:
```in
three
```
###Output example:
The corresponding output is given here. For example:
```out
sum = 10
```







answer:If there is no answer, please comment