Hi friends,
How to print 10 numbers in Fibonacci serious aftet given number?
Like 13 21 34...
Thanks,
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.
Hi friends,
How to print 10 numbers in Fibonacci serious aftet given number?
Like 13 21 34...
Thanks,
What did you find when you searched the 'net? What have you tried? We can't do it for you.
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.
GregBrannon (June 13th, 2014)
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)
GregBrannon (June 13th, 2014)
Thanks friends..
i got it..
i used while loop inside of for loop..