[SOLVED] CSE225L Lab 12 Recursion

29.99 $

Category: Tags: , , , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab-12-e1juto.zip (161.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

 

1. Write a recursive function that returns the nth Fibonacci number from the Fibonacci series.
int fib(int n);

2. Write a recursive function to find the factorial of a number.
int factorial(int n);
3. Write a recursive function that returns the sum of the digits of an integer.
int sumOfDigits(int x);
4. Write a recursive function that find the minimum element in an array of integers.
int findMin(int a[], int size);
5. Write a recursive function that converts a decimal number to binary number.
int DecToBin(int dec);
6. Write a recursive function that find the sum of the following series.
1 + 1/2 + 1/4 + 1/8 + … + 1/2n

  • Lab-12-e1juto.zip