fibonnacci

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sekitoleko
    New Member
    • Sep 2006
    • 21

    fibonnacci

    c program to generate fibonnacci series
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    In the fibonnacci sequence each value is made up of the sum of the previous 2 values

    f(N+2) = f(N+1) + f(N)

    The first 2 values are 1

    Writing a C program to do this is relatively easy so have a try first.

    Write your code
    Compile your code
    Fix and errors or warnings that you understand

    Then

    If you have any errors or warnings that you do not understand or can not fix then post your code and the errors or warnings here and we will help you fix them.

    If you have no errors or warnings but the program doesn't work then post the code here, explain what is going wrong and we will help you fix it.

    If you have no errors or warnings and the program works then give yourself a pat on the back and post your code here and we will give you tips on programming style.

    Comment

    Working...