implement in rpeanut the a fibonacci function by


Implement, in rPeANUt, the a Fibonacci function by using the simple recursive approach. The Fibonacci function can be implemented in c as follow:

int fib(int x) {

  if (x<2) {

    return x;

  } else {

    return fib(x-1) + fib(x-2);

  }

}

Test your implementation (e.g. fib(5) == 5, fib(7) == 13, fib(8) == 21)? What is the biggest Fibonacci number you can calculate in under about 1min of execution time?

 

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: implement in rpeanut the a fibonacci function by
Reference No:- TGS0209410

Expected delivery within 24 Hours