Professional Documents
Culture Documents
AKANKSHA
CSE-A(8101)
domains
A,B=INTEGER.
predicates
bigger(A,B)
smaller(A,B)
equal(A,B)
notequal(A,B)
clauses
bigger(A,B):- A>B ,write("A is greater than B").
smaller(A,B):- A<B , write("B is greater than A").
equal(A,B):- A=B ,write("A is equal to B").
notequal(A,B):- A><B ,write("A is not equal to B").
OUTPUT
PROLOG LAB
AKANKSHA
CSE-A(8101)
OUTPUT
PROLOG LAB
AKANKSHA
CSE-A(8101)
OUTPUT