Nonagonal number | Function to find nonagonal number series . ; Driver Code
function Nonagonal ( n ) { for ( let i = 1 ; i <= n ; i ++ ) { document . write ( parseInt ( i * ( 7 * i - 5 ) / 2 ) + " " ) ; } } let n = 10 ; Nonagonal ( n ) ;