Hello all this my first post, so bear with me if I don't do something correctly.
This is my question: below I have the format for my recursive function but am really unsure of what I need to put in the Underscore areas ?
If anyone has any ideas, I have never done a Fibonacci series of numbers before, so I'm lost as to how it has to be set up.
using namespace std;
unsigned long fib(int nth);
cout << "Enter an integer from 1 to 30: ";
while (!(cin >> nth))
while (cin.get() != '\n')
cout << " Please! Enter a number: ";
if((nth < 1) || (nth > 30))
cout << "\nSorry. "
<< "Number isn't in the right range.";
unsigned long fibValue;
cout << "\nThe value of number " << nth;
cout << " in the series is " << fibValue
// Recursive function
unsigned long fib(int nth)
return(_________ + ____________);