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

PROGRAMMING:4.13 - sum 1 to n

Luz5年前 (2021-05-10)题库429
Write a program to find the sum of 1 to n. The value of n is entered from the keyboard.
-----From exercise 4-13
```
The value of n is 5
The sum of 1 to 5 is 15.
```
###Input example:
```in
five
```
###Output example:
```out
The value of N: the sum of 1 to 5 is 15.
```







answer:If there is no answer, please comment