@@ -0,0 +1,462 @@
+public class GCDandLCMWithoutRecursion %7B%0A%0A    private static int gcd(int a, int b) %7B%0A%0A        while (b %3E 0) %7B%0A%0A            int tmp = b;%0A            b = a %25 b;%0A            a = tmp;%0A%0A        %7D%0A%0A        return a;%0A%0A    %7D%0A%0A    private static int lcm(int a, int b) %7B%0A        return a * b / gcd(a, b);%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        System.out.println(%22GCD = %22 + gcd(54, 24));%0A        System.out.println(%22LCM = %22 + lcm(54, 24));%0A%0A    %7D%0A%0A%7D%0A

Create GCDandLCMWithoutRecursion