Header Ads Widget

Programs on Recursion.

  • Write a recursive function to calculate factorial of a number.
  • Write a recursive function to find Nth term of Fibonacci series.
  • Write a recursive function to sort an array.
  • Write a recursive function to print first N natural numbers.
  • Write a recursive function to print first N natural numbers in reverse order.
  • Write a recursive function to calculate sum of digits of a number.
  • Write a recursive function to calculate sum of squares of digits of a number.
  • Write a recursive function to calculate sum of cubes of first N natural numbers.
  • Write a recursive function to calculate determinant of any order.

Post a Comment

0 Comments