1,105,546 Community Members

How to print this series

Member Avatar
umair jameel
Newbie Poster
7 posts since Nov 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
DJSAN10
Posting Whiz in Training
260 posts since Dec 2010
Reputation Points: 28 [?]
Q&As Helped to Solve: 27 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
0
 

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.

Member Avatar
DJSAN10
Posting Whiz in Training
260 posts since Dec 2010
Reputation Points: 28 [?]
Q&As Helped to Solve: 27 [?]
Skill Endorsements: 0 [?]
 
0
 

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

Member Avatar
DavidKroukamp
Master Poster
737 posts since Dec 2011
Reputation Points: 105 [?]
Q&As Helped to Solve: 180 [?]
Skill Endorsements: 4 [?]
Team Colleague
Featured
 
0
 

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?

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
1
 

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

Member Avatar
DJSAN10
Posting Whiz in Training
260 posts since Dec 2010
Reputation Points: 28 [?]
Q&As Helped to Solve: 27 [?]
Skill Endorsements: 0 [?]
 
0
 

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

haha..good catch NormR1

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: