Program to check if N is a Hexadecagonal Number | Function to check if N is a hexadecagonal number ; Condition to check if the number is a hexadecagonal number ; Given Number ; Function Call
function ishexadecagonal ( N ) { let n = ( 12 + Math . sqrt ( 112 * N + 144 ) ) / 28 ; return ( n - parseInt ( n ) ) == 0 ; } let N = 16 ; if ( ishexadecagonal ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }