Nonagonal number | Function to find nonagonal number series . ; Driver Code
< ? php function Nonagonal ( $ n ) { for ( $ i = 1 ; $ i <= $ n ; $ i ++ ) { echo $ i * ( 7 * $ i - 5 ) / 2 ; echo " ▁ " ; } } $ n = 10 ; Nonagonal ( $ n ) ; ? >