LCM of Two Numbers
Sun Feb 06 2022 04:00:19 GMT+0000 (Coordinated Universal Time)
Saved by @Uttam #java #mathematics #lecture #gfg #geeksforgeeks #efficientmethod #naivemethod #euclidean #optimisedeuclidean #lcm
Efficient Method: ------------------- a=4, b=6 gcd = 2 lcm = (4 * 6) / 2 = 12 Naive Method: ----------------- a=4, b=6 res=6 res=7 res=8 res=9 res=10 res=11 res=12
Comments