get going in minutes
object LeastCommonMultiple { def lcm(a: BigInt, b: BigInt): BigInt = a * b / a.gcd(b) def main(args: Array[String]): Unit = { println(lcm(3, 4)) } }
No comments:
Post a Comment