Tag: C

In the Francis turbine, the water flows from the spiral casing to the inlet of the stay vanes, then to the outlet of the stay vanes, and reaches the inlet of the guide vane. The movement...
The Francis Turbine is a combination of both an impulse and a reaction turbine. It uses both the reaction and impulse forces of water flowing through its blades to produce electricity more efficiently. It is designed...

If Statement in C

General Introduction: If statement is a powerful control statement and is used to control the flow of execution of statements in a program based on...

C Program to Implement Binary Search

General Introduction: Binary Search is the more efficient searching technique compared to Linear Search. The binary search technique only takes 0(log n) times for n...

C Program to Find Gcd of Two Numbers using Iterative Euclid’s Algorithm

General Introduction: In one of our previous example, we calculated the gcd of two numbers recursively using Euclid's algorithm. We can also find the gcd...

C Program to Execute Linear Search

General Introduction: Linear search is a searching technique where an element that is to be searched is searched linearly or sequentially. The element to be searched...

Recursive Program to find the nth term in Fibonacci Series

Fibonacci Series: The Fibonacci series is the special series of the numbers where the next number is obtained by adding the two previous terms. The...

Recursive Program to find the product of two natural numbers

Before I go straight into pseudocode and actual code in C, I just want to explain what are we doing here. So we can...
Tag Template 1

C Program to Implement Insertion Sort

Insertion Sort is the common sorting algorithm that we commonly use while arranging cards. In this algorithm, the elements are compared with the rest...

Recursive Program to Find Gcd of Two Numbers

Introduction and General Idea: Gcd stands for Greatest common divisor and is the name suggest is the largest number that can divide both the numbers....

C Program to Generate Random Number Using Middle-Square Method

The pseudo-random numbers can be generated from Middle-Square Method. In this post, we will look at the way the middle square method works...

C Program To Generate Random Number Using Linear Congruential Method

The Linear Congruential Method uses the following recursive relation to generate the random numbers. Also Read: C Program to Implement Selection Sort x1=(a*xo+c) mod m, where,...

C Program to Implement Selection Sort

The selection sort works by finding the smallest value from the array and placing it in the smallest index(in ascending) in every iteration. This...

C Program to Implement BubbleSort with Function

Bubble sort is the simplest sorting technique. In Bubble Sort, the adjacent elements of an array are checked successively and the elements are swapped...
Tag Template 1

Recent articles

spot_img