25.Programming Assignment 6( using recursion)

1.Print the factorial of a number.
2.Find nCr using a recursive factorial function.
3.Find the sum of the digits of a number.
4.Generate n’th Fibonacci number. 
5.Generate the Fibonacci series using the recursive function written in qno-4.
6.Convert a decimal number into octal using recursion.
7.Convert the decimal number into binary using recursion.
8.Sum of n natural numbers using recursion.
9.Write a program to compute nPr.Use a recursive function fact() to find the factorial.
10.Program to calculate Power of a number ( eg pow(2,3))
11.Count the digits of a number.
12.Sum of first n natural numbers.

Comments

Popular posts from this blog

Python For Machine Learning - CST 283 - KTU Minor Notes- Dr Binu V P

KTU Python for machine learning Sample Question Paper and Answer Key Dec 2020

46.Classes and Objects in Python- Accessors and mutators