Skip to content

Category Archives: C Programs

Prerequisites: Program for Armstrong Numbers A positive integer of n digits is called Armstrong number of order n (order is the number of digits) if … Read More
Prerequisite: Program for Armstrong Numbers A positive integer of n digits is called Armstrong number of order n (order is the number of digits) if … Read More
To understand how to write a C program for reading and printing zip files, it’s important to know what exactly a zip file is. At… Read More
Here we will construct a C program for Newton’s Forward interpolation formula to calculate y(0.5), Correct to 3 decimal places from the following table: x… Read More
To remove all the occurrences of an element in an array, we will use the following 2 approaches:  Using Methods Without using methods or With… Read More
Given a number (num)  we need to check whether it is a Neon Number ( i.e. a number where the sum of digits of the… Read More
Here, we will see how to interchange the elements of the first and last element/entries in a matrix across columns; with an approach of swapping.… Read More
Here, we will build a C Program to Find the Sum of Fibonacci numbers at even indexes up to N terms Fibonacci Numbers: 0, 1,… Read More
Here, we will develop a C Program to Calculate the Average of All Elements of an Array: Input: arr[] = {1, 2, 3, 4, 5}… Read More
To convert boolean to string in C we will use the following 2 approaches: Using Conditional Statements Using Ternary Operator Input:  bool n = true… Read More
Here we will develop a C Program To Print The Reverse Floyd pattern. Given the value of row(number of rows), we need the approach of… Read More
There are 2 ways to print continuous character patterns in C i.e: Using for loop Using while loop Input:  rows = 5 Output:   A … Read More
To display the Armstrong number between two intervals we can use 2 different Methods with 4 approaches: Without using the pow() function Using pow() function… Read More
To print the hollow diamond pattern in C, we will use the following 2 approaches: for Loop while Loop Input: n = 5 Output: *… Read More
To convert the int to char in C language, we will use the following 2 approaches: Using typecasting Using sprintf() Example: Input: N = 65… Read More

Start Your Coding Journey Now!