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

PROGRAMMING:5-1 to calculate the sum of 1 + 2 + 3 +... + n

Luz5年前 (2021-05-10)题库449
5-1 calculates the sum of sum = 1 + 2 + 3 + 4 +... + N, where n is entered from the keyboard.
###Input format:
For example, enter a positive integer.
###Output format:
For example: output and.
###Input example:
Here is a set of inputs. For example:
```in
one hundred
```
###Output example:
The corresponding output is given here. For example:
```out
five thousand and fifty
```







answer:If there is no answer, please comment