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

PROGRAMMING:Write a program to find the cumulative sum of natural numbers 1 to n (n > 1).

Luz5年前 (2021-05-10)题库359
Write a program to find the cumulative sum of natural numbers 1 to n (n > 1). Where the value of n is entered from the keyboard.
###Input format:
Enter a natural number to assign to the variable n.
###Output format:
Output the sum of natural numbers 1 to n.
###Input example:
```in
ten
```
###Output example:
```out
fifty-five
```







answer:If there is no answer, please comment