Write a Prolog program for computing the addition of two natural numbers represented
in the Peano form: using the constant 0 and the unary successor function for
the terms representing the natural numbers.
Using the same notation compute the product of two natural numbers.
Write a Prolog program which computes the permutations of a list of elements.
Write a (Prolog) program which computes the merge sort of the input list.
Write a (Prolog) program which computes the vectorial product of two input lists of integers
having the same length.
Write a program which computes the reversed list LO of an input list L (LO
contains the same values in L, in reversed order).
Write a Prolog program which takes an input list of characters (single
character constant) and check if it is ‘palindrome’.