Home Forums C Programming program for fibonacci series Reply To: program for fibonacci series

#3457
berhane
Participant
#include
void printfab(int,int,int);
void main()
{
 int i=0,j=1,n;
  printf("nEnter last limit ");
  scanf("%d",&n);
  printf("%d  %d ",i,j);
  printfab(i,j,n)
}
void printfab(int i,int j,int d)
{
 
  int temp;
  while(temp   { 
    temp=i+j;
    j=temp;
    i=j;
    printf('n %d",temp);
    printfab(i,j,d);
  }