# Category Archives: C Language

We can print the 180-degree rotation of simple half-left pyramid using for and while loop as follows: Input: rows = 5 Output: * ** ***… Read More
Here, we will see how to check whether two matrices are equal or not using a C Program Input:  First Matrix: 1, 2, 3, 4… Read More
To convert double to string in C language, we will use the sprintf function as follows: Input:  n = 456321.7651234 Output:  string: 456321.7651234 Method: Using… Read More
Here we will build a C program to calculate the sum of natural numbers using 4 different approaches i.e. Using while loop Using for loop… Read More
Here, we will find the area and perimeter of rectangle using a C Program as follows: Example:  Input: l = 10 b = 10 Output: … Read More
Here, we will see how to sort the 2D Array across rows using a C program: Input: 8 5 7 2 7 3 0 1… Read More
Here we will build a C program for hexadecimal to decimal conversion using 5 different approaches i.e. Using format Specifier Using Switch case Using array … Read More
Here, we will sort the elements of an array in descending order using a C program. Example:  Input: array = [45, 22, 100, 66, 37]… Read More
Here, we will build a C Program to Remove leading zeros with the following 2 approaches: Using for loop Using strspn  To remove all leading… Read More
Here we will build a C program to print Floyd’s Triangle Pyramid pattern. Floyd’s Triangle is a triangular array of natural numbers where the nth… Read More
Here, we will develop a C Program To Print Simple Half Right Star Pyramid Pattern using two approaches i.e. Using for loop  Using while loop… Read More
Here, we will print the hollow star pyramid pattern using a C program. Input:  n = 5 Output:  * * * * * * *… Read More
Here, we will build a C Program To Print Floyd Triangle Pattern using 2 approaches i.e.  Using for loop  Using while loop Input: n =… Read More
There are 3 ways to convert the char to int in C language as follows: Using Typecasting Using sscanf() Using atoi() Let’s discuss each of… Read More
Here we will build a C program to display prime numbers between two intervals using functions using the following 2 approaches: Using for loop Using… Read More