Coding challenge

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.

Type your code here:


Lua reference

See your results here: