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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 32 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply