Computer Science Canada Simple Fibonacci Code |
Author: | Malazan [ Thu Jun 09, 2005 10:16 am ] | ||
Post subject: | Simple Fibonacci Code | ||
Quite possibly the easiest to use Fibonacci code? 8) I didn't use any complicated stuff, and added a user prompt for how many terms the user wants ![]() |
Author: | strike_hawk89 [ Fri Jun 10, 2005 9:45 am ] |
Post subject: | |
hey nub, u dont need that "Fib" array. |
Author: | Malazan [ Fri Jun 10, 2005 10:11 am ] |
Post subject: | |
Oops ![]() |
Author: | MysticVegeta [ Fri Jun 10, 2005 4:11 pm ] |
Post subject: | |
strike_hawk89 wrote: nub,
thats quite offending.. please dont use it. |
Author: | md [ Fri Jun 10, 2005 6:29 pm ] |
Post subject: | |
strike_hawk89 wrote: hey nub,...
I assume you meant "noob", but even then; you have what? like 20 posts? And most of those are you asking questions, either to get help, or to try and figure out others code... so I ask you; who is the real noob? I have nothing against people who are new to programming, and I am more then happy to answer their questions whenever I am able. However to call someone a "noob" is deplorable; especially given that you are equally a "noob". As for the Fibonacci code; looks good. The two things I must point out are yes, the Fib array isn't used, so you should remove it; and if there is one thing I can't stand it's comments that follow at the end of a line. Comments on the same line as code is a good thing, however, it's much easier to read your code if the comments are all lined up after your code. I like my code to look like a two column article in the paper, the left column is the code; the right the comments. But aside from those two things (and the second is admitedly a personal preference) it tooks good! |