Chapter 5
Arithmetic
This chapter has two main goals:
- To introduce Prolog’s built-in abilities for performing arithmetic.
- To apply them to simple list processing problems, using accumulators.
5.1
Arithmetic in Prolog
5.2 A Closer Look
5.3 Arithmetic and Lists
5.4 Comparing Integers
5.5 Exercises
5.6 Practical Session
5.2 A Closer Look
5.3 Arithmetic and Lists
5.4 Comparing Integers
5.5 Exercises
5.6 Practical Session