3 lines
45 B
Prolog
3 lines
45 B
Prolog
|
|
lcm(X, Y, Z) :-
|
||
|
|
Z is abs(X * Y) / gcd(X,Y).
|