Category: CP LAB

0

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)...

0

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 ←...

0

Ex.no:3f Illustrate menu-driven Programming

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:...

0

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...

0

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...