X1100: Debugging Scope- Calculating Product

The method below returns the product of numbers from 1 to i. For example, product(4) should return 24 (or 1 * 2 * 3 * 4). However, something is wrong with the method. Fix the method so it works as expected.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.