How to Create Recursive function of fibonancial series in turbo C

  • How to Create Recursive function of fibonancial series in turbo C

  • 1 Comment sorted by


  • #include
    #include
    void fibo(int x, int y)
    {
    printf("%d,",x);
    if(y<20)<br /> {
    fibo(y,x+y);
    }
    }
    main()
    {
    int a=0,b=1;
    clrscr();
    fibo(a,b);
    getche();
    }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

    Optimum Creative