What is Fibonacci Series?
In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence:
or (often, in modern usage):
In mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relation
with seed values
or
Program to Print Fibonacci Series in C++
PROGRAM:
#include<iostream>
using namespace std;
main()
{
int n, c, first = 0, second = 1, next;
cout << "Enter the number of terms of Fibonacci series you want" << endl;
cin >> n;
cout << "First " << n << " terms of Fibonacci series are :- " << endl;
for ( c = 0 ; c < n ; c++ )
{
if ( c <= 1 )
next = c;
else
{
next = first + second;
first = second;
second = next;
}
cout << next << endl;
}
return 0;
}
(sequence 

