0

How to write a program to find the smallest common multiple? What do I do?

https://code.sololearn.com/coMmK9zL9Ek3/?ref=app

11th Mar 2019, 7:15 AM
Миша
Миша - avatar
2 Antworten
+ 19
● basic way it to do prime factorisation of Elements available , and then forming LCM as product of those primes factors raised to highest power that appear in either factorization of Elements taken ● see this site also for examples : http://www.math.com/school/subject1/lessons/S1U3L3DP.html ● After that you can visit this post also : https://www.sololearn.com/Discuss/1718302/?ref=app
11th Mar 2019, 7:32 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
Num1 × Num2 = LCM of both numbers × hcf of both numbers. https://code.sololearn.com/cDf00F8840i0/?ref=app
11th Mar 2019, 7:07 PM
Ayush Sinha
Ayush Sinha - avatar