How to make a fibonacci pragram..can u help me.?

high = 1 ; low = 0
------------------------
high = 1 ; low = 1
high = 2 ; low = 1
high = 3 ; low = 2
high = 5 ; low = 3
high = 8 ; low = 5
high = 13 ; low = 8
high = 21 ; low = 13
high = 34 ; low = 21
high = 55 ; low = 34
high = 89 ; low = 55high = 1 ; low = 0
------------------------
high = 1 ; low = 1
high = 2 ; low = 1
high = 3 ; low = 2
high = 5 ; low = 3
high = 8 ; low = 5
high = 13 ; low = 8
high = 21 ; low = 13
high = 34 ; low = 21
high = 55 ; low = 34
high = 89 ; low = 55


how to make a program if that fibonacci iS the output??

Recommended Answers

All 3 Replies

You can use a loop to make a Fibonacci Series.
Its like: 1 1 2 3 5 8 13 21 etc. i.e. next value in series is sum of previous two values.
You may input the number of values the program should print from the user.

hi,

Fibonacci series are simple but you cofuse his

<<snip>>

Don't tell me, tell the poster the right way .

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.