Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

least common multiple for multiple integers

807606Mar 29 2007 — edited Mar 29 2007
we 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 26 2007
Added on Mar 29 2007
4 comments
638 views