about | help | code help+videos | done | prefs |
The geometric mean of n numbers is dened to be the nth root of the product of the numbers. (The nth root of a number is the same as the number raised to the 1/n power.) Write a function geoMean(high) that returns the integer part of the geometric mean of the numbers between 1.0 and high, inclusive. Use a for loop. geoMean(13) → 5 geoMean(1) → 1 geoMean(8) → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy