% Write a prolog program to calculate the sum of two numbers. % So, what is the function for above mentioned problem. sum(X,Y):- S is X+Y, write(S).
% Output
Prolog program to calculate the sum of two numbers
Write a Prolog program to implement two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list ...
No comments:
Post a Comment