3.2 Task Two: The Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence, F0=0, F1=1, Fn=F

3.2 Task Two: The Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence, F0=0, F1=1, Fn=Fn-1+Fn-2 (n>=2, nE N*) Write a function called Fibonacci which takes an integer parameter that specifies the number of Fibonacci series to be printed on the screen. You function header should be void Fibonacci(int n) like this: in c++ Requirement: Complete the function definition and a main function to call it 1. You main function asks a user to input an integer number. It is then passed to Fibonacci 2. which display the following pattern “EALecture_ZJUTC Programming 2015-2016(2)sLab6-2.exe How many Fibonacci numbers you want to print out? 20 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *