Program to check if N is a Dodecagonal Number | Function to check if number N is a dodecagonal number or not ; Condition to check if the N is a dodecagonal number ; Given number ; Function call
function isdodecagonal ( N ) { let n = ( 4 + Math . sqrt ( 20 * N + 16 ) ) / 10 ; return ( n - parseInt ( n ) ) == 0 ; } let N = 12 ; if ( isdodecagonal ( N ) ) { document . write ( " " ) ; } else { document . write ( " " ) ; }