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

PROGRAMMING:Finding the cumulative sum of 1 to n

Luz5年前 (2021-05-10)题库371
Enter an integer n and find the cumulative sum of 1 + 2 + 3 +... + n.
###Input format:
Enter an integer.
###Output format:
Output the cumulative sum of 1 ~ n.
###Input example:
```in
Here is a set of inputs. For example:
five
```
###Output example:
```out
The corresponding output is given here. For example:
fifteen
```






answer:If there is no answer, please comment