Friday, February 27, 2009

OOPS ASSIGNMENT - 8

Recursive Member Function

1.Write a program to find the factorial of a number using recursive member function.

2.write a program to find the sum of the digits of a number using recursive member function.

3.write a program to find the sum of n numbers using recursive member function.

4.write a program to find the gcd of two numbers using recursive member function.

Recursive constructor
1.write a program to find the factorial of a number using recursive constructor.

2.write a program to find the sum of n numbers using recursive constructor.

3.write a program to find the sum of the digits using recursive constructor.

4.write a program to find the gcd of two numbers using recursive constructor.

1 comment:

Unknown said...

please send me c program to find the gcd of two no. with the help of recursion constructor
manzil.prakash@gmail.com