Lowest Common Multiple (LCM) Function

Write a function lcm that takes 2 arguments and returns the lowest common multiple of these two numbers. 

Examples

lcm(12,16) ➞ 48
lcm(15,25) ➞ 75
lcm(55,22) ➞ 110

Note: 

  • Writing a function is compulsory for this problem. Use "lcm" as a function name.
  • Don't forget to return the result. 
  • Don't use recursive function for this problem. 


Login is required