#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{clrscr();
 int i,a,f,s,d;
 s=1;
 f=0;
 cout<<"This programme is made for getting fabonacci series.";
 cout<<"\n Please add th limit...."<<"\n Type here:-  ";
 cin>> a;
 cout<<"The series is.. "<<"\t"<<f<<","<<s<<",";
 for (i=2;i<=a;i++)
     {d=f+s;
      f=s;
      s=d;
      cout<<d<<",";
     }
 getch();
}