Exercise 1: Fibonacci Sequence upto n Number Of Terms

Compute the Fibonacci series up to n number of terms.

Problem statement

Write the Fibonacci sequence of a given number. In the Fibonacci sequence, each number is the sum of the two preceding numbers. The sequence starts with 0 and 1. Here are the first few numbers of the series: