Challenge 2: Fibonacci Sequence
Learn how to compute the first n numbers of the Fibonacci series in this exercise lesson.
We'll cover the following
Problem statement
In this exercise, you have to compute the first n numbers of fibonacci sequence of a given $range
.
There is a string variable $ans
given in which you have to append all the computed Fibonacci numbers one by one.
Here’s a link showing how you can add values to a string.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy