1. Write a prolog program to calculate the sum of two numbers.
2. Write a prolog program to find the maximum of two numbers
3. Write a prolog program to calculate the factorial of a given number
4. Write a prolog program to calculate the nth Fibonacci number.
6. Write a Prolog program to remove the Nth item from a list.
8. Write a Prolog program to implement append for two lists.
9. Write a Prolog program to implement palindrome(List).
10. Write a Prolog program to implement max(X,Y,Max) so that Max is the greater of two numbers X and Y.
14. Write a Prolog program to implement reverse(List,ReversedList) that reverses lists.
16. Write a Prolog program to implement GCD of two numbers.
No comments:
Post a Comment