Ashish int gcd = GCD.gcd(a, b); int lcm = (a*b)/gcd; System.out.println(“GCD is : “+gcd); System.out.println(“LCM is : “+lcm); Log in to Reply
int gcd = GCD.gcd(a, b);
int lcm = (a*b)/gcd;
System.out.println(“GCD is : “+gcd);
System.out.println(“LCM is : “+lcm);
Add comments here