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

# Thread: how to start Fibonacci series in particluar range?

1. ## 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. ## 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.

4. ## 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. ## 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.

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

GregBrannon (June 13th, 2014)

8. ## Re: how to start Fibonacci series in particluar range?

Thanks friends..

i got it..

i used while loop inside of for loop..