lcm using stl c++ code example
Example: lcm in c++
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << 3*5/__gcd(3, 5) << endl;//15
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
cout << 3*5/__gcd(3, 5) << endl;//15
return 0;
}