Anyone knows why this keeps failing? foo :- write(\'3 numbers: \'), read(A), read(B), read(C), (A > B,B > C,write(A),tab(1),write(B),tab(1),write(C));
I need your help in solving the following problem: There\'re 3 girls (Ann,Susan,Alice) who need to choose what color shoes and dress to wear. There\'re 3 possible colors for shoes and dresses: white,
How do i write a goal that deletes the last three elements from a list L producing another list 开发者_Go百科L1?
I have spent a significant amount of time in the SWI-Prolog documentation and am getting nowhere.My desire is to be able to format numbers that are output such that I am controlling total # decimal di
I\'ve been tasked to i开发者_高级运维mplement a version of findall in Prolog without using any Prolog built-ins except for not and cut - so basically in pure Prolog.
i recently installed B-prolog and tried CG graphics examples from here http://www.probp.com/ According to their manual, i\'ve installed B prolog in C:/ drive and its compiling propoerly but not execu
I am studying prolog at university and facing some problems. What I already found out is just solution to a problem. However, I\'m more interested in the way to think, i.e. how to get such solution.
Peter decides what to do at weekends according to the weather predictions. This is the available information:
append([],Xs,Xs). append([Head|Tail],List2,[Head|Tail2]):- append(Tail,List2,Tail2). The upper append method adds elements from first two parameter slots to the third param variable.
I\'m interested in using JPL with java, but an error message is prompting lik开发者_开发问答e \'package jpl does not exist\' while trying to compile the java program. How do i import jpl to java?You n