Suppose that we want to compute the geometric mean of a list of positive values. To compute the geometric mean of k alues, multiply them all together and then compute the k th root of the value. For example, the geometric mean of 2, 5, and 7 is
Use a loop with a sentinel value to allow a user to enter an arbitrary number of values. Compute and display the geometric mean of all the values, excluding the sentinel. (Hint: Math.pow(x, 1.0/k) will compute the k th root of x.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.