+1 714-215-3097

(Solved) : Write Prolog Program Processes List Numbers Outputs Another List Consists List Constants O Q35598152

Write a Prolog program that processes a list of numbers andoutputs another list which consists of a list of the constants oddand even corresponding to the numbers.

?- oddEven([3,1,5,2,7,3],L).L = [odd,odd,odd,even,odd,odd].

Leave a Reply

Your email address will not be published. Required fields are marked *