Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

gcd algorithm

function gcd(a, b)
    if b = 0
        return a
    else
        return gcd(b, a mod b)
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #gcd #algorithm
ADD COMMENT
Topic
Name
6+1 =