Exercise 2: Fibonacci Sequence upto n Number Of Terms

In this exercise, you have to compute Fibonacci series up to n number

We'll cover the following

Problem Statement

In this exercise, you have to write Fibonacci Sequence of a given number.

  • You have to print the sequence up to the given range which is passed as a parameter to the test function.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy