Description
Look at the series below: 1,2,3,5,8,13,21,34,55,89,144,233,377,610,987,.....
This series is formed as below:
1.term(1)=1
2.term(2)=2
3.term(N)=term(N-1)+term(N-2)for N>2
Write a program to nd the Nth term in this series the value N is a positive integer that should
calculated by the program should be written to STDOUT, other than the value of nth term no
be written to STDOUT.
For example, if N =15, the value of the 15thn term is 987 which is the sum of 13th and 14th te
not exceed 30
Constraints
Enter the input
Answers
Answered by
0
Answer:
crsrsystststsygyguhihigyfyvybybybbu
Answered by
1
Answer:
what is this
pagal clild
Similar questions