Code for GCD computation by Euclid's method
while (x != y) {
if (x > y)
x = x - y;
else
y = y - x;
}
return x;
Determining McCabe's Cyclomatic Complexity