warren383/Play % gprolog GNU Prolog 1.3.0 By Daniel Diaz Copyright (C) 1999-2007 Daniel Diaz | ?- [assignment2]. compiling /Users/warren/Shared/Dormant/CURRENT/TEACHING/383/09-2_CMPT_383/Play/assignment2.pl for byte code... /Users/warren/Shared/Dormant/CURRENT/TEACHING/383/09-2_CMPT_383/Play/assignment2.pl compiled, 11 lines read - 3027 bytes written, 28 ms (1 ms) yes | ?- rational(X,Y). X = 1 Y = 2 ? ; X = 1 Y = 3 ? ; X = 2 Y = 3 ? ; X = 1 Y = 4 ? ; X = 3 Y = 4 ? (1 ms) yes | ?- rational(4,17). true ? (9 ms) yes | ?- rational(8,34). ^C Prolog interruption (h for help) ? a abort b break c continue e exit d debug t trace h/? help Prolog interruption (h for help) ? a execution aborted | ?- rational(X,6). X = 1 ? ; X = 5 ? ; ^C Prolog interruption (h for help) ? a execution aborted | ?- rational(3,Y). Y = 4 ? ; Y = 5 ? ; Y = 7 ? ; Y = 8 ? ; Y = 10 ? (3 ms) yes | ?-