answersLogoWhite

0

Based on gcd:

int LCM (int a, int b)

{

. int d= gcd (a, b);

. if (d==0) return 0;

. else return a/d*b;

}

User Avatar

Wiki User

13y ago

What else can I help you with?