0

I am having problems generating the Fibonacci sequence. I would like to start at 30.

Here is my program:

```
#include <iostream>
#include <conio>
using namespace std;
int main()
{
int Fibonacci, n;
cout <<"Here is the Fibonacci number sequence until 30 .";
if ( n==1 || n==2 )
return( 1 );
else
cout << Fibonacci(n-1) + Fibonacci(n-2);
getch();
return 0;
}
```

However, I am getting an error message where the `cout << Fibonacci(n-1) + Fibonacci(n-2);`

statement is. It is telling me that it is a call of nonfunction.

What am I doing wrong here?

*Edited 3 Years Ago by Dani*: Formatting fixed