% Write a Prolog program to calculate the factorial of a given number.
Subscribe to:
Posts (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 ...
-
Fall 2010 Lecturer: Rich Maclin (rmaclin) Syllabus Grades Useful Links: Textbook Web Page AAAI AAAI Topics Stuart Russe...
-
% 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 two predicates evenlength(List) and oddlength(List) so that they are true if their argument is a list ...
