Question: Write a function that takes as an input a number ' n ' and returns a vector containing n numbers of the Fibonacci sequence. Assume
Write a function that takes as an input a number and returns a vector containing numbers of the Fibonacci sequence. Assume that the input is an integer equal to or greater than Run the function for inputs: and
Recall: The Fibonacci sequence follows the trend
Hint: Use if statements to generate the vector if the sequence is or numbers long.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
