exercise 11.4.3

3 views
Skip to first unread message

mike

unread,
Mar 23, 2009, 9:12:41 PM3/23/09
to Study-HTDP
OK ; product-from-minus-11 . consumes an integer >= -11 and
produces the product of fall the integers between -11 (exclu) and
n (inclusive).
My question is : as you go through 0 while recursing on n then
the product becomes 0. I think i will treat as a factorial and treat
0 as 1 as i march through the recursion. How have others treated
this problem?
thanks, mike

Grant Rettke

unread,
Mar 23, 2009, 9:27:49 PM3/23/09
to Study-HTDP
On Mar 23, 8:12 pm, mike <anesw...@mac.com> wrote:
> How have others treated this problem?

I took it to mean no special treatment and assumed that 0 is an
integer with which to compute the product.
Reply all
Reply to author
Forward
0 new messages