ako neko bude htio da proba, uglavnom radi sve extra…
aldin@laptop:~/Desktop$ ls -lh
total 39M
-rwxr-xr-x 1 aldin aldin 39M 2007-09-28 12:25 ati-driver-installer-8.40.4-x86.x86_64.run
-rw-r–r-- 1 aldin aldin 12K 2007-09-28 14:27 tictac.pl
-rw-r–r-- 1 aldin aldin 74K 2007-09-28 14:27 vi-lv1.pdf
-rw-r–r-- 1 aldin aldin 661 2007-09-28 14:27 vi_lv1.pl
aldin@laptop:~/Desktop$ swipl -c vi_lv1.pl
% vi_lv1.pl compiled 0.00 sec, 3,468 bytes
aldin@laptop:~/Desktop$ ./a.out
Welcome to SWI-Prolog (Multi-threaded, Version 5.6.14)
Copyright © 1990-2006 University of Amsterdam.
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
Please visit http://www.swi-prolog.org for details.
For help, use ?- help(Topic). or ?- apropos(Word).
?- staza2(a,d).
No
?- staza2(a,b).
No
?- grana(a,b).
Yes
?- grana(a,X).
X = b ;
X = f
Yes
?-
% halt (za izlaz -> CTRL + D)
ps:
na ubuntu sudo apt-get install swi-prolog
pps:
pitate se otkud sad ovo hehe, ma nešta radimo na faxu…