Problem 32 - Greatest common denominator

gcd : Int -> Int -> Int 
gcd a b =
    if b == 0 then  
        a
    else
        gcd (abs b) (a % b)

Back to problem

results matching ""

    No results matching ""