Integer part of the geometric mean of the divisors of N | Java implementation of the approach ; Function to return the integer part of the geometric mean of the divisors of n ; Driver code
class GFG { static int geometricMean ( int n ) { return ( int ) Math . sqrt ( n ) ; } public static void main ( String [ ] args ) { int n = 16 ; System . out . println ( geometricMean ( n ) ) ; } }