Showing posts with label BINARY SEARCH. Show all posts
Showing posts with label BINARY SEARCH. Show all posts

Monday 4 August 2014

D.F.S Programs


                                          PROGRAMMES





  • FIBONANNIC SERIES


#include<stdio.h>
#include<conio.h>
void fibo(int i, int j, int t)
{
if(i==0)
printf(" %d ",i);
if(t<=1)
return;
printf(" %d ",j);
fibo(j, i+j, --t);
}

void main()
{
int t;
clrscr();
printf("\nEnter the no. of terms :- ");
scanf("%d",&t);
fibo(0,1,t);
getch();
}