Greatest common divisor: Difference between revisions

Line 490:
=={{header|F_Sharp|F#}}==
<lang fsharp>open System
 
let rec GCDgcd (a:int) (b:int) =
match b with
| 0 -> Math.Abs(a)
| _ -> GCDgcd b (a % b)</lang>
 
>gcd 400 600
val it : int = 200</lang>
 
=={{header|Factor}}==
Anonymous user