adds


Fibonacci series by c++ Programme

THEORY:
Fibonacci series is series of numbers in which each number is equal to the sum of the two preceding number in that series.
Ex: 0,1,1,2,3,5,8,13,15,21,34,55,89 etc.

CODING:
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c=0;
clrscr();
cout<<"The fibonacci series is :\n";
a=0;
b=1;
cout<<c<<"\t";
while(c<100)
{
cout<<c<<"\t";
a=b;
b=c;
c=a+b;
}
getch();
}

OUTPUT:







Model syllabus (+3)Downoad

List of all practicals:   Download

Get all Books:  Download

Syllabus For:                                                      Get all B.Sc Physics Notes
                                                                                         CLICK

IIT-JAM                                                               


  • How to Prepare for IIT-JAM  ⇠ ⇠ Click Here


Post a Comment

Previous Post Next Post