We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,089 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to print this series

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

4
Contributors
6
Replies
19 Minutes
Discussion Span
1 Year Ago
Last Updated
7
Views
umair jameel
Newbie Poster
6 posts since Nov 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 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
260 posts since Dec 2010
Reputation Points: 38
Solved Threads: 27
Skill Endorsements: 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.

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

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

DJSAN10
Posting Whiz in Training
260 posts since Dec 2010
Reputation Points: 38
Solved Threads: 27
Skill Endorsements: 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?

DavidKroukamp
Master Poster
Team Colleague
735 posts since Dec 2011
Reputation Points: 279
Solved Threads: 181
Skill Endorsements: 4

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

NormR1
Posting Sage
Team Colleague
7,742 posts since Jun 2010
Reputation Points: 1,158
Solved Threads: 793
Skill Endorsements: 16

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
260 posts since Dec 2010
Reputation Points: 38
Solved Threads: 27
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.1127 seconds using 2.75MB