62 Chapter 6. Fruitful functions
Write a function called gcd that takes parameters a and b and returns their greatest common divisor.
Credit: This exercise is based on an example from Abelson and Sussman’s Structure and Interpre-
tation of Computer Programs.