Introduction to
Logic Programming
What
versus
How
 

Exercise 9.4 - Multiplication


Define multiplication mul for Modular Arithmetic in terms of number and next. To simplify the task, you may define additional predicates in terms of number and next.