The Fibonacci Series?

I am having some problems with my assignment this week and was wondering what my assignment is asking me to do with two functions? I understand how the first part where I am suppose to generate the Fibonacci Series but not sure the second one and how to put both in one.


Assignment:

Write two functions to calculate and print the first N terms of the Fibonacci Series. The first function calculates the Fibonacci Series using a for loop. The second function calculates the Fibonacci Series recursively.

Fibonacci: 0, 1, 1, 2, 3, 5, 8, 13, 21, … i.e. Fn = Fn-1 + Fn-2, where Fi is the ith term of the Fibonacci Series.



Any idea on what I am suppose to do? Thanks
Well I would assume you're supposed to Write two functions to calculate and print the first N terms of the Fibonacci Series. The first function calculates the Fibonacci Series using a for loop. The second function calculates the Fibonacci Series recursively.

Give it a shot, post what you get, and we'll help you from there.
Topic archived. No new replies allowed.