Two numbers: GCF of 12 and 18 (Euclid's method)
- Input
- Numbers = 12, 18
- Working
- Step 1: 18 = 12 × 1 + 6, remainder 6. Step 2: 12 = 6 × 2 + 0, remainder 0. The last non-zero remainder is the GCF. Factor check: factors of 12 are 1, 2, 3, 4, 6, 12; factors of 18 are 1, 2, 3, 6, 9, 18; the largest shared factor is 6.
- Result
- GCF(12, 18) = 6