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:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code: