Question: Write the Prolog rules for factorial ( X , Y ) which sets Y to the factorial of X . Recall the factorial of 0
Write the Prolog rules for factorialXY which sets Y to the factorial of X
Recall the factorial of is and the factorial of X is Z if X is not equal to and Z is equal to XW where W is the factorial of X
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
