Question: Write a prolog program to create a list that has all integer numbers between an upper bound and a lower bound Example: ?- range(5,9,X). X
Write a prolog program to create a list that has all integer numbers between an upper bound and a lower bound
Example:
?- range(5,9,X).
X = [5,6,7,8,9]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
