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

Recommended Answers

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.

Jump to Post

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

Jump to Post

All 6 Replies

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.

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.

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

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?

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

commented: Good eyes +6

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

haha..good catch NormR1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.