Greatest Common Divisor Cpp