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

PROGRAMMING:Calculating s=1+(1+2)+(1+2+3)+... ...+(1+2+...+n)

Luz5年前 (2021-05-10)题库514
Given 1 integers `n`, you are supposed to output the value of 1+(1+2)+(1+2+3)+... ...+(1+2+...+n).
### Input Specification:
Each input file contains one test case, which gives `n` in a line.
### Output Specification:
For each test case, print in a line the value of `1+(1+2)+(1+2+3)+... ...+(1+2+...+n)` by `s=value`
### Sample Input:
```in
three
```
### Sample Output:
Write the corresponding sample output here. For example:
```out
s=10
```







answer:If there is no answer, please comment