Question: While writing code for different number sequences, you started to think of a number sequence of your own. So you made your own number sequence
While writing code for different number sequences, you started to think of a number sequence of your own. So you made your own number sequence which is: 2, 1, 3, 4, 7, 11, 18, 29, 47, ..
Now write a C program to find the nth value of your number sequence.
Sample Input
Enter the value of n: 5
Sample Output
5th value of your number sequence is 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
