C Program to Search an Element in an Array

In this tutorial, we will write a program to search an element in an array in C. There are various ways or algorithms to search an element in an array, we will use linear search. Before going further, you should have knowledge of the following topics in C programming. Explanation: We will create a program … Read more

C Program to Check whether the entered character is capital, small letter, digit or special character

In this tutorial, we will write a program to check whether the entered character is capital, small letter, digit or any special character using C programming. Here, we will write two different C program, 1. Using library function The following C program Check whether the entered character is capital, small letter, digit or special character … Read more

C Program to Check Armstrong Number

In this C programming example, we will write a program to check Armstrong Number in C. We will start with Armstrong Number. Before that, you should have knowledge of the following topics in C programming. What is an Armstrong Number? A number is said to be an Armstrong Number if even after the sum of … Read more

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