Count number of digits in an integer using while loop
We can count the number of digits in a given number in many ways using java.
Write a java program to display alphabets (A to Z) using loop
In this program, we can loop through A to Z using for loop because they are stored as ASCII characters in java.
Java program to find LCM of two numbers
In this program, LCM(Least common multiple) of two or more numbers is the least positive number that can be divided by both the numbers, without leaving the remainder. It is also known as Lowest common multiple, Least Common Denominator and smallest common multiple. It is denoted by LCM (a, b) or lcm (a, b) where a and b are two integers.
In this program, we have covered different logic in java programs to find GCD of two numbers.