Skip to content

Instantly share code, notes, and snippets.

hackerghost93 /
Created Apr 1, 2016
Some list operation implemented in Prolog.
/*This to call the outside function .. the inside function "average"
calculate the result and give it back to the outside function
Count is 0,
Sum is 0 ,
/* This is the most important line you need to handle base case well use trace command in SWI-PROLOG