Write two clauses in PROLOG that determines if there are threevalues in a list that sum up to a value of N.
The output should be a single true if there exist three valueswhose sum is N or a single false if there are not.
If there are multiple values whose sum is N then the programshould only print true once.
Solution
Program screenshots:
Sample output:
Code to copy:
% declare
OR
OR