Posted by : ANIMESH SHAW Tuesday, 1 May 2012




#include<stdio.h>
 
int Fibonacci(int);
 
main()
{
   int n, i = 0, c;
 
   scanf("%d",&n);
 
   printf("Fibonacci series\n");
 
   for ( c = 1 ; c <= n ; c++ )
   {
      printf("%d\n", Fibonacci(i));
      i++; 
   }
 
   return 0;
}
 
int Fibonacci(int n)
{
   if ( n == 0 )
      return 0;
   else if ( n == 1 )
      return 1;
   else
      return ( Fibonacci(n-1) + Fibonacci(n-2) );
} 

6 Responses so far.

  1. Anonymous says:

    Actually when someone doesn't know afterward its up to other users that they will help, so here it takes place.
    cleaning hardwood floors

    my homepage ... hardwood floors installation
    My page - hardwood floors installation

  2. Anonymous says:

    Definitely believe that that you stated. Your favorite reason appeared to be at the internet the
    easiest thing to take into accout of. I say to you, I certainly
    get irked whilst people consider concerns that they plainly do not
    recognise about. You controlled to hit the nail upon the highest as smartly as outlined out the whole thing without having side effect , people could take a
    signal. Will probably be again to get more.
    Thank you

    My webpage - treatment for toenail fungus

  3. Anonymous says:

    I was suggested this web site by my cousin. I am not sure whether this post is written by him as no
    one else know such detailed about my trouble.
    You are incredible! Thanks!

    Here is my web page; hardwood flooring

  4. Anonymous says:

    Great article! That is the type of information that
    are supposed to be shared around the internet. Disgrace on
    the seek engines for not positioning this put up higher!
    Come on over and consult with my site . Thank you
    =)
    installing hardwood floors

  5. Anonymous says:

    Very descriptive blog, I enjoyed that bit. Will there be
    a part 2?
    refinishing hardwood floors

    Look into my blog ... hardwood floor refinishing

  6. Anonymous says:

    Hi there! Do you know if they make any plugins to help with
    Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good success.
    If you know of any please share. Appreciate it!

    My blog post ... telanganafb.com

Popular Post

Blog Archive

Total Pageviews

Sign In

Follow by Email

Powered by Blogger.

Like Us on Facebook

Search This Blog

Loading...

Indian Coder

- Copyright © Programming Mania -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -