Medium
LCM Using GCD
Write
gcd(a, b) with Euclid's loop and lcm(a, b) that uses it (a * b // gcd(a, b)). Read numbers on one line and print the LCM of all of them.Input
One line of positive integers.
Output
One integer.
Sample 1
Input
4 6
Output
12
Sample 2
Input
1 2 3 4 5
Output
60
Output appears here