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