RosettaCodeData/Task/Variables/Prolog/variables-3.pro

7 lines
84 B
Prolog
Raw Permalink Normal View History

2016-12-05 22:15:40 +01:00
?- mortal(socrates).
yes
?- student(X,socrates).
X=plato
?- student(socrates,X).
no