install SWI Prolog - https://www.swi-prolog.org/build/PPA.html run:
swipl zad1.pl
it will result in loading contents of zad1.pl file to the interactive tool.
install SWI Prolog - https://www.swi-prolog.org/build/PPA.html run:
swipl zad1.pl
it will result in loading contents of zad1.pl file to the interactive tool.