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

PROGRAMMING:For loop exercise: 1 to x cumulative sum, and output in the specified format.

Luz5年前 (2021-05-10)题库409
It is required to read in an integer x, and then output the sum of 1 + 2 + 3 +... X.
###Input format:
Positive integer x
###Output format:
1 +... + x = result
###Input example:
```in
four
```
###Output example:
```out
1+...+4=10
```







answer:If there is no answer, please comment