Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Fibonacci sequence

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Fibonacci sequence

    i am in tenth grade and for an assignment i have to write a program that asks for a number and generate of terms in the Fibonacci sequence. sorry for being a noob. but i need that program


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Fibonacci sequence

    for an assignment i have to write a program
    If your assignment is to write a program, what have you written so far? Post your code and your questions.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Feb 2012
    Posts
    173
    Thanks
    6
    Thanked 10 Times in 10 Posts

    Default Re: Fibonacci sequence

    I'll give you a hint, here is the formula.

    An = An-1 + An-2

    Where A1 = 1 and A2 = 1.

Similar Threads

  1. Fibonacci Sequence final project
    By Sylis in forum What's Wrong With My Code?
    Replies: 10
    Last Post: November 30th, 2012, 04:22 PM
  2. Summing n terms of a Fibonacci Sequence
    By wayfaring_stranger in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 19th, 2012, 12:45 AM
  3. Recursive Fibonacci sequence optimization
    By aesguitar in forum Algorithms & Recursion
    Replies: 2
    Last Post: June 24th, 2012, 08:49 AM
  4. The Fibonacci sequence
    By Ryuk_93 in forum Android Development
    Replies: 1
    Last Post: March 26th, 2012, 11:56 AM
  5. Fibonacci series
    By seanman in forum Algorithms & Recursion
    Replies: 4
    Last Post: September 11th, 2011, 12:32 PM