Question: prolog code for this Write a program using the PROLOG language to count how many 7 in the list. For example: how_many_7([6,8,5,3],0). How_many_7([5,7,9,7,7,3],3). How_many_ 7([5,1,7,8,7],2)
Write a program using the PROLOG language to count how many 7 in the list. For example: how_many_7([6,8,5,3],0). How_many_7([5,7,9,7,7,3],3). How_many_ 7([5,1,7,8,7],2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
