fork download
  1. gcd(X,X,X).
  2. gcd(X,Y,G) :-
  3. X<Y,
  4. Y1 is Y-X,
  5. gcd(X,Y1,G).
  6. gcd(X,Y,G) :-
  7. X>Y,
  8. X1 is X-Y,
  9. gcd(Y,X1,G).
Success #stdin #stdout #stderr 0.02s 6980KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit