C Program to Generate Random numbers within a Range

In this tutorial, you will learn to generate random numbers within a range in C programming. But before that, you may go through the topic below if you do not know about the rand() and srand() function used in random numbers generation. Here we will use srand() function provided in C to generate random numbers. … Read more

C Program to Generate Random Numbers

In this C program section, we will learn how to generate random numbers in C programming. Let us start with random numbers. What is Randon Number? We can define Random as something that happens without any conscious decision. Similarly, a random number is a number that is chosen unpredictably or randomly from the set of … Read more

C Program to Convert Number to Words

In this tutorial, we will create a C program to Convert Numbers to Words. Consider a number 278 is taken as an input, now the program will convert this numeric value to words such as “Two Hundred Seventy Eight”. We have to create a program keeping the place values in minds such as ones, tens, … Read more

C Program to Find GCD of two Numbers

This tutorial will teach you how to find the GCD (Greatest Common Divisor) or HCF of two numbers in C. To understand this example, you should have knowledge of the following C programming topics. The GCD(Greatest Common Divisor) of two integers is the largest integer that can exactly divide both numbers (without a remainder). Example: HCF of … Read more

C Program to Find LCM of two Numbers

This tutorial will teach you how to find the LCM (Least Common Multiple) of two numbers in C. To understand this example, you should have knowledge of the following C programming topics. The LCM (Least Common Multiple) of two integers is the smallest positive integer that is perfectly divisible by both the numbers  (without a remainder). For example, the … Read more

C Program to Find the GCD and LCM of Two Integers

The post on C program calculates the GCD and LCM of two integer numbers. GCD(Greatest Common Divisor) or HCF: Largest Integer that can divide both the numbers without any remainder or with 0 as remainder. For example, the GCD or HCF of 36 and 48 is 12. LCM(Least Common Multiple): The LCM of two integers is the smallest … Read more

C Program to Generate Fibonacci Series

This is the tutorial on the Fibonacci series in C with an example. Before that, you should have knowledge of the following topic in C. What is Fibonacci Series? Fibonacci series is the series of numbers where the next number is achieved by the addition of the previous two numbers. The initial addition of two … Read more

Sum of digits of a Number in C

This tutorial is to find the sum of digits of a number using for loop and while loop in C. You need to have knowledge of the following topics in C. Explanation:To find the sum of the digits means to add all the digits present in the number. For example: consider a number 123, sum … Read more