Concept Flow - GCD and LCM Euclidean Algorithm
Start with two numbers a, b
Check if b == 0?
Yes→GCD is a
No
Compute a % b
Set a = b, b = a % b
Repeat until b == 0
Calculate LCM = (original_a * original_b) / GCD
Start with two numbers, repeatedly replace the larger by remainder until zero; last non-zero is GCD. Then use GCD to find LCM.
