Computer Science Canada Fibonnaci sequence... |
Author: | not_l33t [ Wed May 12, 2004 7:22 pm ] | ||
Post subject: | Fibonnaci sequence... | ||
How do I assimilate that sequence so I can out put its sequence. I tried this one, but it doesn't work. It is supposed to add the 2 preceeding numbers but I am gettting out of ideas.
|
Author: | AsianSensation [ Wed May 12, 2004 9:23 pm ] | ||
Post subject: | |||
recursion.
|
Author: | not_l33t [ Wed May 12, 2004 9:33 pm ] | ||
Post subject: | |||
AsianSensation wrote: recursion.
Thank you very much. Amazing stuff. Can you explain the first line. |
Author: | Tony [ Wed May 12, 2004 10:05 pm ] |
Post subject: | |
eh... fcn is the short form for function. Similary, proc is short for procedure (which is a function that doesn't return a value... silly HoltSoft ![]() |
Author: | AsianSensation [ Wed May 12, 2004 10:21 pm ] |
Post subject: | |
lol, i have yet to find a short form for processes. maybe prcs ? |
Author: | not_l33t [ Thu May 13, 2004 5:10 pm ] |
Post subject: | |
Seriously, I don't get it. I have never used the function command. Neither do I get the logic of it. I am really sorry but can you explain it to me? Please? |
Author: | Tony [ Thu May 13, 2004 5:16 pm ] | ||
Post subject: | |||
function a block of code that returns a value. Same as functions covered in math. y = 2x in turing that would be
|
Author: | not_l33t [ Thu May 13, 2004 5:18 pm ] | ||
Post subject: | |||
tony wrote: function a block of code that returns a value. Same as functions covered in math.
y = 2x in turing that would be
All hail the Turing Lord. ![]() |