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

C Program to Find the GCD and LCM of Two Integers

The post on C program calculates the GCD and LCM of two integer numbers. GCD(Greatest Common Divisor) or HCF: Largest Integer that can divide both the numbers without any remainder or with 0 as remainder. For example, the GCD or HCF of 36 and 48 is 12. LCM(Least Common Multiple): The LCM of two integers is the smallest … Read more

C Program to Generate Fibonacci Series

This is the tutorial on the Fibonacci series in C with an example. Before that, you should have knowledge of the following topic in C. What is Fibonacci Series? Fibonacci series is the series of numbers where the next number is achieved by the addition of the previous two numbers. The initial addition of two … Read more

Sum of digits of a Number in C

This tutorial is to find the sum of digits of a number using for loop and while loop in C. You need to have knowledge of the following topics in C. Explanation:To find the sum of the digits means to add all the digits present in the number. For example: consider a number 123, sum … Read more

Automorphic Number Program in Java

In this tutorial, you will learn about the Automorphic Number along with an example and also code java to check whether the number is automorphic or not. What is an Automorphic number? A number is said to be an automorphic number if the square of the given number ends with the same digits as the number … Read more

C Program to Reverse a Number using Loops

In this tutorial, we will write a C program to reverse a number using loops. Before that, you may go through the following topics in C. To reverse an integer in C is achieved using loop and operators. For example, if the input number is 123 then the program should give 321 as a result. … Read more