least common multiple for multiple integers
807606Mar 29 2007 — edited Mar 29 2007we have the algorithmn to calculate the least common multipe(LCM) for 2 integers.
However, how to calculate the LCM for multiple integers (e.g. LCM for 2,3,5 is 30) ?
Could anyone share with me the C++/Java algorithm for this? Thanks a lot!