- Write a program to reverse the string using recursion.
OR
Write a recursive function that could print a string backward. - Write a program to show the use of recursion in the calculation of exponentiation e.g. ab.
- Write the output of the following program?
sum=0 def recur(p): if p<=0: return 1 else: return (recur(p-2) + recur(p-1)) print(recur(5))
- Write a program to print Fibonacci Series up to Nth Term using Recursion?
- Write the program of binary search Using Recursion?
- Write a recursive function that computes the sum of number 1…...n ; get the value of last number n from the user.
No comments:
Post a Comment