Since 34 is a factor of 102, 34 is the GCF and 102 is the LCM.
Greatest Common Divisor (GCD) for 67 102 is 1.
GCD: 2 LCM: 204
GCD: 1 LCM: 170
GCD: 2 LCM: 204
GCD = 39 LCM = 1,755
The GCD is: 1The LCM is: 780
The GCD is 125 The LCM is 546,875
GCD(14, 34) = 2GCD(14, 34) = 2GCD(14, 34) = 2GCD(14, 34) = 2
if the gcd and lcm are given and one of the numbers are also given,multiply the gcd and lcm and divide them by the given number
GCD(40, 4900) = 20 LCM(40, 4900) = 9800
The following function will return the GCD or LCM of two arguments (x and y) depending on the value of the fct argument (GCD or LCM). enum FUNC {GCD, LCM}; int gcd_or_lcm(FUNC fct, int x, int y) { int result = 0; switch (fct) { case (GCD): result = gcd (x, y); break; case (LCM): result = lcm (x, y); break; } return result; }
The GCF is 33.The LCM is 1485.