Answers for "how to calculate LCM in cpp"

C++
0

lcm function c++

ll lcm(ll a,ll b)
{
    return (a*b)/gcd(a,b);
}
Posted by: Guest on September-19-2021

Browse Popular Code Answers by Language