Solution to SICP Exercise 1.4

Structure and Interpretation of Computer Programs

Solution to Exercise 1.4:

If b is positive, the + operator will be applied to a and b. Otherwise, the - operator will be. This results in the absolute value of b always being added to a.

Advertisements