# Category: CP LAB

## Ex.No:7b Fibonacci number Using Recursion

AIM:         To write a program to find the ith Fibonacci number using recursion, given F(0)=0, F(1)=1. ALGORITHM: Step 1: Start the program Step 2: read num Step 3: f <- fibo(num)...

## Ex.No:6c Swap two numbers using call by reference

AIM:         To write a C program to swap two numbers using call by reference. ALGORITHM: Step 1: Start the program. Step 2: Set a ← 10 and b ← 20 Step...

## Ex.No:6b Swapping Two Numbers using call by value

AIM:         To write a C program to swap two numbers using call by value. ALGORITHM: Step 1: Start the program. Step 2: Set a ← 10 and b ← 20 Step...

## Ex.No:6a FUNCTIONS WITH ARGUMENTS AND WITH RETURN VALUES

AIM:         To write a program to illustrate a function with arguments and with return values. ALGORITHM: Step 1: Start the program. Step 2: Enter the two numbers. Step 3: Call the...

## Ex.No:5 solving problems using String functions

AIM:          To write a C program to illustrate any five string functions. ALGORITHM: Step 1: Start the program. Step 2: Read the string str1 and choice. Step 3: If choice is...

## Ex.No:4c Sorting

AIM:          To write a C program to sort an array of n integers. ALGORITHM: Step 1: Start the program. Step 2: Read the array a. Step 3: Repeat for i ←...

AIM:          To write a C program to illustrate menu-driven Programming. ALGORITHM: Step 1: Start the program. Step 2: Read choice and num. Step 3: Repeat till a valid choice. Step 3a:...

## Ex.No:3e Triangle Of Numbers

AIM:         To write a c program to print triangle of numbers. ALGORITHM: Step 1: Start the program. Step 2: Declare the variables i,j,k,l and n as “int” datatype. Step 3: Read  N numbers of...

## Ex.No:3d Program To Find The Exponent Of The Given Number

AIM:          To write a c program to find the exponent of the given number. ALGORITHM: Step1: Start the program. Step 2: Enter the X and n Value. Step 3: Set a...

## Ex.no:2e Area of a triangle

AIM:         To write a C program to find the area of a triangle given the length of three sides. ALGORITHM: Step 1: Start the program. Step 2: Read the side lengths...