954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to print this series

How to print this series using loop
1,1,2,3,5,8,11,19,30,49...........

umair jameel
Newbie Poster
6 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
 

Its the fibonacci series. You will find a lot of information about it on the web. Try reading some stuff and start coding. If you are stuck somewhere we will help you.

DJSAN10
Posting Whiz in Training
249 posts since Dec 2010
Reputation Points: 38
Solved Threads: 26
 

What is the formula or equation to generate the numbers in that series?
When you get that, we can help you write java code to output those numbers.

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 

Just to give you a start your next number will be the addition of previous 2 numbers

DJSAN10
Posting Whiz in Training
249 posts since Dec 2010
Reputation Points: 38
Solved Threads: 26
 
How to print this series using loop 1,1,2,3,5,8,11,19,30,49...........


Do you want to calculate the series and print it up to the nth number or have you got a set array that you want to print?

DavidKroukamp
Practically a Master Poster
Team Colleague
693 posts since Dec 2011
Reputation Points: 282
Solved Threads: 169
 

Given: 1,1,2,3,5,8,11,19,30,49........
Fibonacii:1,1,2,3,5,8,13,21,...

NormR1
Posting Expert
Moderator
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
 
Given: 1,1,2,3,5,8,11,19,30,49........ Fibonacii:1,1,2,3,5,8,13,21,...

haha..good catch NormR1

DJSAN10
Posting Whiz in Training
249 posts since Dec 2010
Reputation Points: 38
Solved Threads: 26
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: