Program to check if N is a Decagonal Number | Function to check if N is a Decagonal Number ; Condition to check if the number is a decagonal number ; Given Number ; Function Call
function isdecagonal ( N ) { let n = ( 3 + Math . sqrt ( 16 * N + 9 ) ) / 8 ; return ( n - parseInt ( n ) ) == 0 ; } let N = 10 ; if ( isdecagonal ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }