[Tutor] fibonacci

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Tue Feb 11 20:50:02 2003


On 11 Feb 2003, Chris Avery wrote:

> Hello all.
>
> How would one go about writing a program that computes the fibonacci
> sequence?

Hi Chris,


Counterquestion: what is the fibonacci sequence?  *grin*


But seriously speaking: pretend that none of us on the list know what the
"fibonacci sequence" is, and try explaining it to us.  Since concrete
examples help clear our head, it might also be helpful to show us what the
first few terms of these sequence are.

You may find that explaining it to a human can help you figure out how to
program a computer how to do it!