Competitions
DSA Week 1
LCM of two integers
Find the LCM (least common multiple) of two integers.
Input
Two positive integers a and b (a, b < 2 * 109
).
Output
Print the LCM of a and b.
Input example #1
42 24
Output example #1
168
Find the LCM (least common multiple) of two integers.
Two positive integers a and b (a, b < 2 * 109
).
Print the LCM of a and b.
42 24
168