Nonagonal number | Function to find nth nonagonal number . ; Formula to find nth nonagonal number . ; Driver function .
function Nonagonal ( n ) { return parseInt ( n * ( 7 * n - 5 ) / 2 ) ; } let n = 10 ; document . write ( Nonagonal ( n ) ) ;