38. Lowest Common Multiple
Core1000 ms256 MBSolved by 0%
Read two positive integers and print their lowest common multiple, the smallest number that both divide into exactly.
Constraints - `1 ≤ a, b ≤ 1000000000`
Input
A single line containing two integers, separated by a space.
Output
Print one integer, the lowest common multiple.
Input4 6
Output12
Noteis a small pair
Input3 5
Output15
Noteis coprime, so the answer is the product
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.
Hint 1Where to start
Hint 2The approachOpen hint 1 first. This one carries on from it.
Hint 3PseudocodeOpen hint 2 first. This one carries on from it.
Hint 4Full solutionOpen hint 3 first. This one carries on from it.