Concentric Hexagonal Numbers | Java program to find nth concentric hexagon number ; Function to find nth concentric hexagon number ; Driver Code ; Function call
class GFG { static int concentric_Haxagon ( int n ) { return 3 * ( int ) Math . pow ( n , 2 ) / 2 ; } public static void main ( String [ ] args ) { int n = 3 ; System . out . println ( concentric_Haxagon ( n ) ) ; } }