AI Index
AI Index
1
Index Page
Write a Pro-log program to implement maxlist
(List,Max)so that Max is the greatest number in the list of
11 numbers List. 11
Output
Write a Pro-log program to implement sumlist (List,Sum)
12 so that Sum is the sum of a given list of numbers List. 12
Output
Write a Pro-log program to implement two predicates
evenlength(List) and oddlength(List) so that they are true
13 if their argument is a list of even or odd length 13
respectively.
Output
Write a Pro-log program to implement reverse
14 (List,ReversedList) that reverses lists. 14
Output
Write a Pro-log program to implement maxlist (List,Max)
so that Max is the greatest number in the list of numbers
15 List using cut predicate. 15
Output
Write a Pro-log program to implement GCD of two
16 numbers. 16
Output
2
Index Page