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 6 of 6

Thread: how to start Fibonacci series in particluar range?

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    4
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to start Fibonacci series in particluar range?

    Hi friends,

    How to print 10 numbers in Fibonacci serious aftet given number?

    Like 13 21 34...

    Thanks,


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: how to start Fibonacci series in particluar range?

    What did you find when you searched the 'net? What have you tried? We can't do it for you.

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: how to start Fibonacci series in particluar range?


  4. #4
    Member Abhilash's Avatar
    Join Date
    Jun 2014
    Location
    Kolkata, West Bengal, INDIA
    Posts
    108
    My Mood
    Busy
    Thanks
    5
    Thanked 10 Times in 10 Posts

    Default Re: how to start Fibonacci series in particluar range?

    For that, first you have to start from basic i.e. from the beginning. Obviously you know get the Fibonacci series starting from 0 and 1. Use that logic to get a Fibonacci series up to the given no. (from where you have to start from). Then using the given no. and the number behind the given number in the series, get the new series after the given no. up to 10 numbers.

  5. The Following User Says Thank You to Abhilash For This Useful Post:

    GregBrannon (June 13th, 2014)

  6. #5
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: how to start Fibonacci series in particluar range?

    Tip - one method is to use nested repetition and resetting the variable to hold the fibonacci value each iteration.
    Last edited by Ada Lovelace; June 12th, 2014 at 03:38 AM. Reason: Spelling error
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  7. The Following User Says Thank You to Ada Lovelace For This Useful Post:

    GregBrannon (June 13th, 2014)

  8. #6
    Junior Member
    Join Date
    Jun 2014
    Posts
    4
    My Mood
    Amused
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to start Fibonacci series in particluar range?

    Thanks friends..

    i got it..

    i used while loop inside of for loop..

Similar Threads

  1. fibonacci series in reverse order
    By r2dak in forum What's Wrong With My Code?
    Replies: 6
    Last Post: July 17th, 2013, 10:06 AM
  2. Fibonacci Series
    By 13cmwest in forum What's Wrong With My Code?
    Replies: 8
    Last Post: March 15th, 2013, 04:39 AM
  3. java code for fibonacci series?
    By javawreker in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 1st, 2012, 08:02 AM
  4. Fibonacci series
    By seanman in forum Algorithms & Recursion
    Replies: 4
    Last Post: September 11th, 2011, 12:32 PM
  5. problem to get Fibonacci series- please help.
    By zoala001 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 3rd, 2011, 01:10 AM