function gcd(a : number, b : number) : number {
return b == 0 ? a : gcd(b, a % b);
}
const a = 12, b = 20;
console.log("The GCD (greatest common divisor) of " + a + " and " + b + " is: " + gcd(a, b));
/*
run:
"The GCD (greatest common divisor) of 12 and 20 is: 4"
*/