Untitled

Anonymous
elm
02/26/2023 9:41 AM
336 B
75
Indexable
module Main exposing (main)


import Html

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

main =
    let
        _ = Debug.log "" (gcd 6 4)
    in
    
    Html.text ""
Editor is loading...