Description:
Calculate GCD and LCM of two numbers.
Calculate GCD and LCM of two numbers.
Python Code
import math
a, b = 48, 18
gcd = math.gcd(a, b)
lcm = (a * b) // gcd
print("GCD:", gcd)
print("LCM:", lcm)
Expected Output
GCD: 6
LCM: 144