Fibonacci

Description:           This program will generate the Fibonacci Sequence

 

Primary Inputs:    —–
Primary Output:    Fibonacci Sequence
Platform Used:      Turbo C++ version 3.0, Borland International Inc.
 

/*program to generate Fibonacci Sequence*/

#include
#include
#define MAX 10

void main()
{
int j,temp;
int a=0,b=1,i=1;
int fib[MAX];
clrscr();
fib[0]=0;
fib[1]=1;

while(i

 

Rate this post

Leave a Reply