diff --git a/NumberTheory(GCDandLCM).py b/NumberTheory(GCDandLCM).py new file mode 100644 index 0000000..382734f --- /dev/null +++ b/NumberTheory(GCDandLCM).py @@ -0,0 +1,10 @@ +import math + +num1 = 12 +num2 = 18 + +gcd = math.gcd(num1, num2) +lcm = num1 * num2 // gcd + +print(f"GCD: {gcd}") +print(f"LCM: {lcm}")