![Creating While Loop Programs in C](https://icons.labex.io/creating-while-loop-programs-in-c.png)
Creating While Loop Programs in C
In this lab, we will learn how to create a while loop program in C language. A while loop is used in programming to execute a block of code repeatedly until the specified condition becomes false. This loop is used when we don't know beforehand how many times the loop will run.
C
![Use of Gets Function in C Programming](https://icons.labex.io/use-of-gets-function-in-c-programming.png)
Use of Gets Function in C Programming
In C Programming language, gets() function is used to take input from the user. Unlike scanf(), gets() reads a whole line of text, stops reading when Enter key is pressed, and does not discard the newline character.
C
![Calculate Simple Interest Program](https://icons.labex.io/calculate-simple-interest-program.png)
Calculate Simple Interest Program
In this lab, you will learn how to write a C program to calculate the Simple Interest for a given principal amount, rate of interest, and time duration.
C
![Sort Array Elements](https://icons.labex.io/sort-array-elements.png)
Sort Array Elements
This lab will guide you through a step-by-step process for sorting array elements in ascending order.
C
![Simple Pointer Program](https://icons.labex.io/simple-pointer-program.png)
Simple Pointer Program
This lab will teach you the basics of pointers in C language. You will learn how to create a pointer, access the address and value of a variable using pointers, and print the values using format specifiers.
C
![Reversing Case of Character](https://icons.labex.io/reversing-case-of-character.png)
Reversing Case of Character
This lab will guide you through the process of writing a C program to reverse the case of input character. This program will take a user input character and convert it to its opposite case (lowercase to uppercase or uppercase to lowercase).
C
![Swapping Numbers With Pointers](https://icons.labex.io/swapping-numbers-with-pointers.png)
Swapping Numbers With Pointers
In C programming, you can swap two numbers using pointers. Pointers are powerful features in C that allow us to manipulate data by storing and accessing addresses instead of actual values. In this lab, we will learn how to swap two numbers using pointers.
C
![Sum of N Input Numbers in C](https://icons.labex.io/sum-of-n-input-numbers-in-c.png)
Sum of N Input Numbers in C
This lab will guide you on how to write a program in C that sums up N input numbers. We will use a loop to get the sum of all input numbers and display the result.
C
![Finding Second Largest Number in C](https://icons.labex.io/finding-second-largest-number-in-c.png)
Finding Second Largest Number in C
In this lab, we will learn how to find the second-largest number out of three user input numbers in C programming language. We will be using an algorithm that utilizes nested if-else loops to find the second largest number.
C
![Sum of First N Numbers With Recursion](https://icons.labex.io/sum-of-first-n-numbers-with-recursion.png)
Sum of First N Numbers With Recursion
In this lab, we will learn how to use recursion to find the sum of the first N numbers. We will use the C programming language to write a program that takes an user input, calculates the sum of the first N numbers, and outputs the result to the user. Recursion is a technique used in programming where a function calls itself to solve a problem.
C
![Sum of N Integers Using Arrays](https://icons.labex.io/sum-of-n-integers-using-arrays.png)
Sum of N Integers Using Arrays
In this lab, you will learn how to create a program to find the sum of n integers using an array. You will use C programming language to create the program.
C
![Sum of Digits Calculation](https://icons.labex.io/sum-of-digits-calculation.png)
Sum of Digits Calculation
In this lab, we will learn to write a program to calculate the sum of digits of a given number in C programming language.
C
![Sum of Digits Using Recursion](https://icons.labex.io/sum-of-digits-using-recursion.png)
Sum of Digits Using Recursion
Recursion is a programming technique where a function calls itself, allowing the function to repeat until a base case is met and the function returns the final output. In this lab, we will learn how to find the sum of digits of a given number using recursion.
C
![Swapping Two Numbers Program](https://icons.labex.io/swapping-two-numbers-program.png)
Swapping Two Numbers Program
Swapping two numbers means interchanging their values. In this lab, we will learn how to swap two numbers in C language using different methods such as using a temporary variable, addition and subtraction, bitwise operators, multiplication and division.
C
![Recursive Power Calculation in C](https://icons.labex.io/recursive-power-calculation-in-c.png)
Recursive Power Calculation in C
In this lab, we will learn how to calculate the result of a given number raised to the power of n using recursion in C programming.
C
![Program Copy File](https://icons.labex.io/program-copy-file.png)
Program Copy File
In this lab, we will create a C program to copy the content of one file to another file. We will read from the source file and write the contents to the destination file.
C
![Prime or Composite Number Using Recursion](https://icons.labex.io/prime-or-composite-number-using-recursion.png)
Prime or Composite Number Using Recursion
In this lab, we will learn how to write a C program that checks if a number is a prime number or a composite number using recursion. A prime number is a number that is only divisible by 1 and itself, while a composite number is a number that is not a prime number. We will use recursion to write the program, which is a technique to solve problems by breaking them down into smaller, simpler problems.
C
![Pointer to a Function](https://icons.labex.io/pointer-to-a-function.png)
Pointer to a Function
Pointer to a function is a way to store the memory address of a function just like a variable stores the memory address of a value. When a function is called through a pointer, it is called pointer to a function.
C