fork download
  1. go :-
  2. repeat,
  3. print('Enter a number '),
  4. get0(Num), nl,
  5. (
  6. ((Num>58), print('You did not enter a number'),nl,fail)
  7. ;
  8. (print('Do it again'), nl, fail)
  9. ).
Success #stdin #stdout 0.02s 68352KB
stdin
Standard input is empty
stdout
GNU Prolog 1.3.1
By Daniel Diaz
Copyright (C) 1999-2009 Daniel Diaz