What is LCM?
LCM stands for the "Least Common Multiple" / "Lowest Common Multiple", or can also be said "Smallest Common Multiple". LCM is the smallest positive integer that is divisible by both numbers (or more).
Given two numbers, we have to find LCM.
Example:
Input:
first = 45
second = 30
Output:
HCF/GCD = 90
Program to find LCM of two numbers in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer