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,

Posted: Tue Jul 12, 2022 8:15 am
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 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 1 (13.24 KiB) Viewed 33 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