Integer part of the geometric mean of the divisors of N | C ++ implementation of the approach ; Function to return the integer part of the geometric mean of the divisors of n ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int geometricMean ( int n ) { return sqrt ( n ) ; } int main ( ) { int n = 16 ; cout << geometricMean ( n ) ; return 0 ; }