C Examples

GCD of Two Numbers

C Program to Find GCD of Two Numbers

CodingTute

In this example, you will learn to find the GCD or HCF of two given numbers. GCD is known as ...

LCM of Two Numbers

C Program to find LCM of two numbers

CodingTute

In this example, you will learn to find the LCM of two numbers using a c program. LCM is also ...

C Program to Find Factorial of a Number

C Program to Find Factorial of a Number

CodingTute

Factorial program in C: In this article, you will explore how to find the factorial of a given number in ...

C Program to Display Fibonacci Sequence

C Program to Display Fibonacci Sequence

CodingTute

In this article, you will learn to generate the Fibonacci sequence of n terms in multiple ways. Below are the ...

C Program to Generate Multiplication Table

C Program to Generate Multiplication Table

CodingTute

In this example, you will learn to generate a multiplication table up to 10 for the given number. Program to ...

C Program to Check Alphabet

C Program to Check Whether a Character is an Alphabet or not

CodingTute

In this example, you will learn to check a given character is alphabet or not. In C language, every character ...

C Program to Calculate the Sum of Natural Numbers

C Program to Calculate the Sum of Natural Numbers

CodingTute

In this example, you will learn to calculate the sum of first n natural numbers. Mathematically, the sum of n ...

C Program to Find the Roots of a Quadratic Equation

C Program to Find the Roots of a Quadratic Equation

CodingTute

In this example, you will learn to find the roots of a quadratic equation. A quadratic equation will have two ...

C Program to Check Leap Year

C Program to Check Leap Year

CodingTute

In this example, you will learn to find a given year is a leap year or not. We all know ...

C Program to Find the Largest Number Among Three Numbers

C Program to Find the Largest Number Among Three Numbers

CodingTute

In this example, you will learn to find the largest number among the three numbers. In example 1 we will ...