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 cube of a given number

C Program To Calculate The Cube Of A Given Number

In this tutorial, we are going to learn to write a C program to calculate the cube of a given number. This program will be going to simply like a square program in c. So before moving the writing program of the cube, let’s know about the cube. What is the Cube of a number? … 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

C Program to calculate the power without using POW function

C Program To Calculate The Power Without Using Pow Function

In this tutorial, we are going to learn a writing program in C to calculate the power of a given number without using the POW method. Here we will write our own logic to calculate the power of a given number. To calculate the power we need two numbers. One is the base number and … Read more

C Program to find Smallest number among three

C Program To Find Smallest Number Among Three

In this tutorial, we are going to learn the writing program in C to find the smallest number among 3 given integers. So here our problem statement is, we have given 3 integers and we have to find the smallest number among three. For Example We Will Give 3 integers like 4,1,9. Here we will … Read more