Files
Construction-of-Compilers/Project-02/triplaprograms/ggT_euclid_iter.tripla
Jan-Niclas Loosen fe33668b5f Init next project
2025-11-11 14:40:50 +01:00

12 lines
257 B
Plaintext

let ggT(a, b) {
if (a == b) then
a
else
do {
if (a > b) then
a = a - b
else
b = b - a
} while (a != b);
a
} in ggT(3528, 3780) // result should be 252