Exercise 1: Fibonacci Sequence upto n Number Of Terms

Let's compute the Fibonacci series up to n number of terms.

Problem Statement

In this exercise, you have to write Fibonacci Sequence of a given number. In fibonacci sequence each number is the sum of the two preceding numbers. The sequence starts with 0 and 1. Here’re the first few numbers of the series:

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

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