GCD and LCM Write a program that continually displays the greatest common divisor (GCD) and least common multiple (LCM) of the absolute values of two (2) integers until the inputs of the users are both (0).For this project create the following functions: ◦ int abs(int value); This function returns the absolute value of the parameter value. ◦ int gcd(int x,int y); This function returns the GCD of parameters x anc y. ◦ int lcm(int x,int y); This function returns the LCM of parameters x anc y
Get Free Quote!
336 Experts Online