0% found this document useful (0 votes)
8 views1 page

Lab 6 Functions and Recursive Functions

Uploaded by

reallykool4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Lab 6 Functions and Recursive Functions

Uploaded by

reallykool4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

National College of Engineering

Subject: C Programming
Faculty: BCT+BEL Prepared By: Subash Panday
Lab-6: Functions and Recursive Functions

Objectives: To be familiar with user defined function and the use recursive function to solve a
problem.

Related Theory:

a. Differentiate between library function and user defined function.


b. Function declaration/prototype, Function call, Function definition (syntax and
significance).
c. Recursive function.

Lab Task:
1. WAP to calculate simple interest.
2. WAP to calculate area and circumference of circle.
3. WAP to calculate volume, TSA and CSA of cylinder.
4. WAP to input any number and display it in reverse order.
5. WAP to check whether the given number is palindrome or not.
6. WAP to calculate HCF of any two numbers.
7. WAP to evaluate the given series:-
a. 1+4+9+16+...+n^2
b. 1+1/8+1/27+.....+1/n^3
c. 1,11,111,1111,11111,......n terms
d. 1+2/2!+3/3!+.....+ n/n!
e. 1+x/1! + x^2/ 2! + x^3/3!+…….x^n /n!
8. WAP to calculate the factorial of input number using recursive function.
9. WAP to generate the Fibonacci series using recursive function.
10.WAP to find the sum of a digit of input number using recursive function.
11.WAP to evaluate the following series using recursion:-
a. 1+ 2/2! +3/3!+…………………….n/n!
b. x+x^2+x^3+………………..x^n

You might also like