Anonymous user
Greatest common divisor: Difference between revisions
m
→{{header|Swift}}
Line 3,363:
func gcdr (var a: Int, var b: Int) -> Int {
a = abs(a); b = abs(b)
if (b > a) { swap(&a, &b) }
|