ram chapter 15

You may have been able to turn the above into a function an use that to output numbers and answer the question.