Question: Q 1 . ( 1 0 pts ) Write Java program with a recursive method called evenfact ( N ) which takes in a number

Q1.(10 pts) Write Java program with a recursive method called evenfact (N) which takes in a number N and returns the factorial of the even numbers between the given number N and 2. For example:
evenfact(4) returns 8, because 2**4=8 evenfact (9) returns 384, because 2**4**6**8=384
(Hint: when N is 0, the result is 1 ; when N is greater than or equal to 1, there are two situations: when N is an even number, you need consider about N-2; when N is an odd number, you need consider about N-1)
Q 1 . ( 1 0 pts ) Write Java program with a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!