C Program to sort the given list using insertion sort technique: ALGORITHM : Step 1: Start Step 2: Input the number of elements (n) and t...
Showing posts with label DS lab. Show all posts
Showing posts with label DS lab. Show all posts
Data Structures Lab (BSC cs and BCA II sem KSWU)
Data Structures Lab Programming Lab Part A: Click on Program to see its Source code 👇 1. Write a C Program to find GCD using recursive fun...
7.DS - Lab -C Program to create a file to store student records(Part A)
C Program to create a file to store student records ALGORITHM : Step 1: Start Step 2: Create a file named "student_records.txt". ...
4.DS -LAB - C Program to implement Towers of Hanoi(Part A)
C Program to implement Towers of Hanoi ALGORITHM : Step 1: Start Step 2: Declare a function towers_of_hanoi(n, source, auxiliary, destinati...
3.DS - LAB - C Program to generate n Fibonacci numbers using a recursive function(Part A)
C Program to generate n Fibonacci numbers using a recursive function(Part A) ALGORITHM : Step 1: Start Step 2: Declare a recursive functio...
2.DS -Lab -C Program to display Pascal Triangle using the binomial function(Part A)
C Program to display Pascal Triangle using the binomial function Theory : The Pascal triangle is among the most well-known pattern puzzles...
1.DS - Lab -C Program to find GCD using recursive function(Part A)
1. C Program to find GCD using recursive function(Part A) ALGORITHM : Step 1: Start Step 2: Declare a recursive function gcd_recursive(a, b...
write a C program to sort the given list using insertion sort technique
write a C program to sort the given list using insertion sort technique #include <stdio.h> #define MAX_SIZE 100 void insertionSor...
write a C program to find GCD and LCM of 2 integer numbers
write a C program to find GCD and LCM of 2 integer numbers #include <stdio.h> int main() { int num1, num2, gcd, lcm, temp, rem...
write a C program to display Pascal Triangle using binomial function
write a C program to display Pascal Triangle using binomial function #include <stdio.h> long int factorial(int n); long int binomi...
write a C program to find GCD using recursive function
write a C program to find GCD using recursive function #include <stdio.h> int gcd(int a, int b); int main() { int num1, num2; ...