summaryrefslogtreecommitdiff
path: root/day1/exercise/gcd.py
diff options
context:
space:
mode:
Diffstat (limited to 'day1/exercise/gcd.py')
-rw-r--r--day1/exercise/gcd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/day1/exercise/gcd.py b/day1/exercise/gcd.py
index 41db13d..35d704e 100644
--- a/day1/exercise/gcd.py
+++ b/day1/exercise/gcd.py
@@ -1,7 +1,7 @@
def gcd(a, b):
- if a % b == 0:
- return b
- return gcd(b, a%b)
+ if a % b == 0:
+ return b
+ return gcd(b, a%b)
print gcd(5, 40)
print gcd(11, 60)