How to calculate LCM of two numbers without calculating GCD ?

I want to calculate lcm of two integers without using gcd method. What should I do?

I dont want to calculate this way :
public static int lcm(int a, int b)
{
return ((a*b)/gcd(a,b));
}

2 Likes

delete this question admin

3 Likes
//