I've got to do a java program that's recursive using Fibonacci numbers
Everything works apart from the fact I got to do a fib count
fibCount++; just seems wrong
------- Pandora didn't think outside the box
12:12 pm on Mar. 9, 2010 | Joined: Feb. 2006 | Days Active: 1,368 Join to learn more about King KongWales | StraightMale | Posts: 35,334 | Points: 49,773
LiveWire Humor
RIMHfire
DEUTSCHLAND Your Ass. Patron
Good God, what?
12:25 pm on Mar. 9, 2010 | Joined: Aug. 2008 | Days Active: 500 Join to learn more about RIMHfireMassachusetts, United States | StraightFemale | Posts: 26,296 | Points: 33,024
my lecturer wants fib count or something in the program. no idea what to do. I have the program counting.
i have to do a table like this
n fib(n) fib Count
Post edited at 12:29 pm on Mar. 9, 2010 by King Kong
------- Pandora didn't think outside the box
12:27 pm on Mar. 9, 2010 | Joined: Feb. 2006 | Days Active: 1,368 Join to learn more about King KongWales | StraightMale | Posts: 35,334 | Points: 49,773
blitzerdog
Guru
that seems right, when are you incrementing fibCount? after every sequence of numbers?
------- I took the less beaten path
12:30 pm on Mar. 9, 2010 | Joined: Feb. 2007 | Days Active: 926 Join to learn more about blitzerdogCalifornia, United States | StraightMale | Posts: 12,216 | Points: 23,994
that seems right, when are you incrementing fibCount? after every sequence of numbers?
I literary have no idea what to do with fib count
------- Pandora didn't think outside the box
12:37 pm on Mar. 9, 2010 | Joined: Feb. 2006 | Days Active: 1,368 Join to learn more about King KongWales | StraightMale | Posts: 35,334 | Points: 49,773
DefaultTo0
Guru Patron
You have not mentioned what fibCount is or is supposed to do.
------- DefaultTo0
3:17 am on Mar. 12, 2010 | Joined: July 2006 | Days Active: 1,018 Join to learn more about DefaultTo0England, United Kingdom | Label FreeMale | Posts: 10,333 | Points: 23,832