fork download
  1. menor :-
  2. write('Ingrese el primer número: '), read(N1),
  3. write('Ingrese el segundo número: '), read(N2),
  4. (N1 < N2 ->
  5. format('El menor es: ~w', [N1])
  6. ;
  7. format('El menor es: ~w', [N2])
  8. ), nl.
  9.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
GNU Prolog 1.4.5 (64 bits)
Compiled Feb  5 2017, 10:30:08 with gcc
By Daniel Diaz
Copyright (C) 1999-2016 Daniel Diaz
| ?-