Question

1. Write a recursive function (range) that takes 3 numbers as arguments (begin, end,

inc) and return a list that starts at begin and each subsequent number increases by inc

and the list has a last value which is less than or equal to end. Assume that end > begin

and inc is always +ve. (range 2 15 3) should return (2, 5, 8, 11, 14)

1

Fig: 1