Nonagonal number | Function to find nth nonagonal number . ; Formula to find nth nonagonal number . ; Driver Code
< ? php function Nonagonal ( $ n ) { return $ n * ( 7 * $ n - 5 ) / 2 ; } $ n = 10 ; echo Nonagonal ( $ n ) ; ? >