Write a recursive method called multiplyEvens that returns the product of the first even integers. For example,

Question:

Write a recursive method called multiplyEvens that returns the product of the first even integers. For example, multiplyEvens(1) returns 2 and multiplyEvens(4) returns 384 (because 2 * 4 * 6 * 8 = 384). The method should throw an IllegalArgumentException if it is passed a value less than or equal to 0.


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: