Driver code
var n = 2 ; document . write ( n + " " + " " ) ; document . write ( center_hexadecagonal_num ( n ) + " " ) ; n = 12 ; document . write ( n + " " + " " ) ; document . write ( center_hexadecagonal_num ( n ) ) ;