Question: Write the code in C Write a recursive function int fib (int n) to compute the Fibonacci numbers where n is a positive integer Write
Write a recursive function int fib (int n) to compute the Fibonacci numbers where n is a positive integer Write an application using command line parameters that calls fib(n) and outputs n, fin(n) fib(n) 1.0/fib(n-1) for n 3,4,5,6,7,8,9,10,11,12,13,14,15 In a format fprintf (stdout,''n-%defib(n)-%d1tfib(n)/fib(n-1) %gin", n, fib(n), fib(n)" 1.0 fib(n-1)) Submit the assignment by dropping the MS word file containing the program code, results (take a screen shot of the ubuntu) and paste to the word file and upload to the drop box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
