The function gcd(a,b) will return the greatest common divisor of a and b, while lcm(a,b) will return the least common multiple of a and b. Write some code to prove that lcm(x,y) $\times$ gcd(x,y) = x $\times$ y.← Back to challenges | Lessons

Run Share Lua reference