How to calculate the LCM in Java

hello experts,

how to calculate the LCM of some numbers (how many numbers I have to calculate will come dynamically) in Java?


Thanks.
mr_objectAsked:
Who is Participating?
 
CEHJCommented:
http://mindprod.com/jgloss/gcd.html

lcm = a * b / gcd(a,b)
0
 
mr_objectAuthor Commented:
Thank you!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.