The coding starts from next line:-
---------------------------------------------------------------------------------------------------------------
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,second=1,first=0,third;
cout<<"\nFIBINACOO SERIES:";
cout<<"\n"<<first;
cout<<"\n"<<second;
for(i=3;i<10;i++)
{
third=first+second;
cout<<third;
first=second;
second=third;
}
getch();
}
0 comments:
Post a Comment