C Program to check the given year is a leap year or not

C Program To Check The Given Year Is A Leap Year Or Not

In this tutorial, we will learn to write the program in C to check whether a given year is a leap year or not? This program required some knowledge of leap year to build the logic. So let’s know first about the leap year. What is Leap year? A Leap year is a calendar year … Read more

C Program to convert Decimal number to Octal number

C Program To Convert Decimal Number To Octal Number

In this tutorial, we will learn to write a program in c to convert a decimal number into an octal number. Here we will use the division by 8 concepts to convert it into an octal number. Before moving towards the writing program let’s know about the Octal numbers. What is an Octal Number? An octal … Read more

C Program to Convert Decimal Number into Binary

C Program To Convert Decimal Number Into Binary

In this tutorial, we will learn to write a program in c to convert a decimal number into a binary number. Here we will use the division concept to convert it into a binary number. Before moving towards the writing program let’s know about the binary numbers. What is the Binary Number? A binary number is a number that … Read more

C Program to find GCD of two numbers using recursion

C Program To Find GCD Of Two Numbers Using Recursion

In this tutorial, we will learn the writing program in C to find the GCD of two numbers using recursion. In the previous tutorial, we have learnt to write the c program to calculate GCD without recursion. Program in C to find GCD using recursion Output 1 Output 2

C Program to find GCD or HCF of two numbers

C Program To Find GCD Of Two Numbers Using Recursion

In this tutorial, we are going to learn a writing program in C to calculate GCD or HCF. Basically, Both GCD and HCF are the same. GCD full form is Greatest common divisor and HCF means Highest Common Divisor. Before starting the writing a program in C for HCF or GCD let’s understand HCF/GCD first. … Read more

C program to calculate LCM of given two numbers

C Program To Calculate LCM Of Given Two Numbers

In this tutorial, We are going to learn a writing program to calculate the LCM of two numbers. Before writing a program let’s understand What is LCM? How to calculate LCM? LCM stands for Least Common Divisor, which is a value of two numbers that are evenly divisible by the two given numbers. For example: … Read more

C Program to calculate the square root of a given number

C Program To Calculate The Square Root Of A Given Number

In this tutorial, we will learn a writing program in C to calculate the square root of a given number. There is a predefined function sqrt() in C which we will use to find the square root of any number. This program is going to be very easy like the square program in c and … Read more

C Program to calculate the square of a given number

C Program To Calculate The Square Of A Given Number

In this tutorial we are going to learn writing C Program to calculate the square of given number. This program is going to be very simple because we just have to calculate square of number. Before moving towards writing program let’s know about square. What is square of number? When number is multiplied to itself, … Read more