% Write a Prolog program to calculate the factorial of a given number.
Subscribe to:
Comments (Atom)
15. Write a Prolog program to implement two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list of even or odd length respectively.
Write a Prolog program to implement two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list ...
-
% Write a prolog program to calculate the sum of two numbers. % So, what is the function for above mentioned problem. sum ( X , Y ):- ...
-
Write a Prolog program to implement maxlist(List,Max) so that Max is the greatest number in the list of numbers List using cut predicate. ...
-
Write a Prolog program to remove the Nth item from a list. % Write a Prolog program to remove the Nth item from a list. /*delete a numbe...
