%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% 980202, 980311 Thom Fruehwirth, LMU %% computes greatest common divisor of positive numbers written each as gcd(N) %% %% ported to hProlog by Tom Schrijvers :- module(gcd,[]). :- use_module( library(chr)). :- constraints gcd/1. gcd(0) <=> true. %%gcd(N) \ gcd(M) <=> N= N=