Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

gcd

int gcd(int a, int b) {
    while (b) b ^= a ^= b ^= a %= b;
    return a;
}
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #gcd
ADD COMMENT
Topic
Name
1+2 =