This program shows A Fibonacci Sequence starting from a user’s entered number, the approach used here is recursive.Have a look at the code:
[cpp] //febonacci using recursion
using namespace std;
int F(int n)
cout<<"Enter a number : ";
A recursive function is created which takes the user’s entered number as an argument and uses it for finding the next values.