summaryrefslogtreecommitdiff
path: root/31-41/32.hs
blob: 585039d5849217e3b05891ef06c10fd1bb08b825 (plain) (blame)
1
2
3
4
5
myGCD :: Int -> Int -> Int


myGCD a 0 = abs a
myGCD a b = myGCD b (a `mod` b)