Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
prolog_test
%commands to the interpreter are submitted from stdin input ('show input' box below) %'halt.' will be automatically appended to stdin input. %swi-prolog 6.6.4 :- set_prolog_flag(verbose, silent). program :- write('Hello, world!'). %:- program. parent(pavica, branko). parent(tomo, branko). parent(tomo, lana). parent(branko, ana). parent(branko, petra). parent(petra, jan). female(pavica). female(lana). female(ana). female(petra). male(tomo). male(branko). male(jan). %mother(X, Y) :- % parent(Z, X), % parent() bla(X, Y) :- parent(X, Z), parent(Y, Z). %-------------------------- %------- To evaluate fact, click [+] Show input on bottom % ------ example: male(X). % ------ to obtain more results, add semicolon at end after dot % ------ example: male(X). ; %--------------------------
run
|
edit
|
history
|
help
0
Astar
Tercer Ejercicion
modificar para escribir arreglos vacíos, de un valor y de varios valores
Ejercicio 1
Kaori Olvera Arao
Tarea If
Prolog_test
SECOND LAB
ETS
Prueba