Programming Methodologies
Lab sheet – Recursion
1. Write a program in C to print the first 50 natural numbers using recursion.
2. Write a C program to calculate the summation up to a given number using
recursion
3. Write a C program to calculate the factorial of a given number using
recursion
4. Write a C program to implement a recursive function to calculate the power
of a number
5. Write a C program to implement a recursive function to calculate the sum
of digits of a given number.
6. Write a C program to implement a recursive function to get the
nth Fibonacci number.
7. Write a program in C to print the array elements using recursion
8. Write a C program to reverse a string using recursion
9. Write a C program to implement a recursive function to calculate the
product of two numbers without using the multiplication operator.
10. Write a C program to implement a recursive function to calculate the sum
of even and odd numbers in a given range.