Icosidigonal number | Function to calculate Icosidigonal number ; Formula for finding nth Icosidigonal number ; Driver Code
< ? php function icosidigonal_num ( $ n ) { return ( 20 * $ n * $ n - 18 * $ n ) / 2 ; } $ n = 4 ; echo $ n , " th ▁ Icosidigonal ▁ number ▁ : ▁ " , icosidigonal_num ( $ n ) ; echo " STRNEWLINE " ; $ n = 8 ; echo $ n , " th ▁ Icosidigonal ▁ number ▁ : ▁ " , icosidigonal_num ( $ n ) ; ? >