Write a Prolog program that returns the final element of a given list.

Question:

Write a Prolog program that returns the final element of a given list.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: