#include <iostream.h>
#include <conio.h>

Void main()
{
clrscr();
unsigned long first ,second,third,n;

first=0;

second=1;

cout<<"How many element (>5?)\n";

cin>>n;

cout<<"Fibonacci series\n";

cout<<first<< "   "<<second ;

for (int i=2; i<n;++i)
{

third=first+second;

cout<<" "<<third ;

first=second;

second=third;

getch();

}};

Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates