menu search
person
thumb_up_alt 0 like thumb_down_alt 0 dislike
12 views

1 Answer

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

void main()
{
 int n1,n2,n,i;

 clrscr();
 n1=0;
 n2=1;

 cout<<"Fibonacci series :"<<endl;
 cout<<n1<<endl;
 cout<<n2<<endl;
 for (i=3;i<=20;i++)
 {
n=n1+n2;
cout<<n<<endl;
n1=n2;
n2=n;
  }
  getch();
}
thumb_up_alt 0 like thumb_down_alt 0 dislike
...