Question: using prolog 2. Write a rule that prints the length/size of a list. Provide a screenshot of the output. (0.5 marks) - ? size([1,4,3,2,5],X)
2. Write a rule that prints the length/size of a list. Provide a screenshot of the output. (0.5 marks) - ? size([1,4,3,2,5],X)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
