Increase the index
i ++ ; } Console . WriteLine ( " STRNEWLINE Below ▁ are ▁ counts ▁ " + " of ▁ all ▁ elements " ) ; for ( i = 0 ; i < n ; i ++ ) { Console . WriteLine ( ( i + 1 ) + " ▁ - > ▁ " + hash [ i ] ) ; } }