fork download
  1. :- set_prolog_flag(verbose,silent).
  2. :- prompt(_, '').
  3. :- use_module(library(readutil)).
  4.  
  5. f2(data(1981/4/3,type(m)),sal(50000)).
  6.  
  7. main:-
  8. process,
  9.  
  10. process:-
  11. /* your code goes here */
  12. f2(data(D),_),
  13. write(D),
  14.  
  15. :- main.
Success #stdin #stdout #stderr 0.04s 7304KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Warning: /home/RmM6eE/prog:17:
	Goal (directive) failed: user:main
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit