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

PROGRAMMING:This problem requires programming to calculate the sum of the first n items of the sequence 1 + 1 + 2 + 3 + 5 +

Luz5年前 (2021-05-10)题库498
This problem requires programming to calculate the sum of the first n (n > = 1) items of the sequence 1 + 1 + 2 + 3 + 5 +.
###Input format:
The input gives a positive integer n on one line.
###Output format:
Output in the format of "sum = s" in one line
###Input example:
Here is a set of inputs. For example:
```in
three
```
###Output example:
The corresponding output is given here. For example:
```out
sum = 4
```







answer:If there is no answer, please comment