Fibonacci Sequence - 0 views
-
Sarah-Jane Bolling on 11 Feb 09I think I'm finally starting to understand php. It's not the easiest language, thats for sure! (or is it!?) With that said, here is my Fibonacci Sequence up to 500. I looked a variety of different codes online, but didn't use just one. After looking at a whole bunch I realized there are quite a few ways to write this code. Which in my mind, only compicated matters more...
-
Alex Halavais on 11 Feb 09Yes! It's true of most programming tasks: there are many ways to accomplish the same thing. In some ways it does complicate things, but it's also (though it may not feel like it now) makes it fun! It's especially good when you find a "good hack"--a shortcut that makes your code better, faster, shorter, and more simple. Congrats on this one, it's a hard program to puzzle out.