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 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

Java Program to find Prime Factor of a given number

Find Prime Factor Of A Given Number in java

In this tutorial you will learn writing Java program to find prime factor of a given program. Before moving on writing program lets know what is prime factor? Read This: Prime factor program in C How this Java program will behave? The prime factor calculation program will take a number as a input and in … Read more