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

PROGRAMMING:S = 1 + 2 + 3 +... + n until s > = m

Luz5年前 (2021-05-10)题库362
S = 1 + 2 + 3 +... + N, when s just exceeds a certain number, stop the operation. Finding the value of N and S
###Input format:
For example, enter 1000
###Output format:
Output format: 1035 = 1 + 2 +... + 45
###Input example:
Here is a set of inputs. For example:
```in
one thousand
```
###Output example:
The corresponding output is given here. For example:
```out
1035=1+2+...+45
```
###Input example:
Here is a set of inputs. For example:
```in
ten thousand
```
###Output example:
The corresponding output is given here. For example:
```out
10011=1+2+...+141
```







answer:If there is no answer, please comment