Page 1 of 1

3-Write a prolog program to get a list and return sum of the even elements in the list. For example ?- counting([1,2,3,4

Posted: Thu Jul 14, 2022 2:19 pm
by answerhappygod
3 Write A Prolog Program To Get A List And Return Sum Of The Even Elements In The List For Example Counting 1 2 3 4 1
3 Write A Prolog Program To Get A List And Return Sum Of The Even Elements In The List For Example Counting 1 2 3 4 1 (10.24 KiB) Viewed 29 times
3-Write a prolog program to get a list and return sum of the even elements in the list. For example ?- counting([1,2,3,4,5],Q). Q=6