From 4aecea015e99b98b99cc55742df4b25fbf6915a1 Mon Sep 17 00:00:00 2001 From: abhishek bundela Date: Fri, 10 Apr 2015 22:32:40 +0530 Subject: [PATCH] gcd_lcm.py --- algorithms/math/lcm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/algorithms/math/lcm.py b/algorithms/math/lcm.py index 35f1c77..e84c2ae 100644 --- a/algorithms/math/lcm.py +++ b/algorithms/math/lcm.py @@ -1,3 +1,4 @@ +# calculate gcd also, gcd(a,b)*lcm(a,b) = a*b def lcm(a, b): """ Simple version of lcm, that does not have any dependencies