The sequence Fibonacci numbers begin with the integers 1,1,2,3,5,8,13,21....where each number after the first two is the sum of the two perceeding numbers, i want to write a loop to display this sequecnce numbers less than 500 .

do we need to write 2 loops ? its not working for me ? help please ?

Recommended Answers

All 2 Replies

No need in two loops. Search this forum for Fibonacci series (there are lots of recent threads on this topic).

Be a part of the DaniWeb community

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