Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in 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);
      } 
     

Viewing 1 post (of 1 total)