Chris wrote a multiplication function which he believes is the next big thing.
1 2 3 4 |
|
Which of the options best describes the domain of and respectively, such that the above function works as intended?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The given function is a recursive function, with b decremented by 1 at each loop. For the function to work properly, b must end with 0 which is a nonnegative integer, which implies that b must be a nonnegative integer . Otherwise, the function will never reach b = 0 and hence will create an infinite loop.
On the other hand, a is not affected by any operation contained in the function. Hence, we can say that a must be a real number .