Latest Posts

Recursive program to calculate the power of the base

General Idea: Recursive program to calculate the power of base using recursionWe always calculate a lot of a number raised to a power in Maths.The...

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 For Chi-Square Test For Uniformity

The random numbers are very important for any analysis in the simulation study. One such test for the testing the uniformity is the Chi-Square...