0
/ 50
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,...
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 feedback will appear here when you check your answer.