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

PROGRAMMING:Summation from 1 to n using recursion.

Luz5年前 (2021-05-10)题库360
Write a program in C to calculate the sum of numbers from 1 to n using recursion.
### Input:
Input a positve integer n.
### Output :
Compute the summation of 1+2+...+n.
### Sample of Input:
```in
five
```
### Sample of Output:
```out
fifteen
```







answer:If there is no answer, please comment