in Prolog
I made ??up the rules so
home: - domanda (yellow wall), domanda2 ( bulbs), domanda2 (attic), domanda2 (desk)
Villa: - domanda(green wall), domanda( lamp), domanda2 (attic), domanda2 (mobile)
how do I say that if the specific domanda2 (attic) is negative, you have to skip all the...
sorry for my English
this is my code
stampa_diagnosi(X) :- gia_chiesto(S, 'si'), sintomo(S, M), not(sintomo(S, X)), M \= X,
nl, write('Una possibile diagnosi è: '), write(X), nl,
write('il paziente ha un peso minore di 65 KG? (1, 2, 3) '),nl,read(X),peso(P), nl.
peso(1) :-...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.