Print all the local maxima and local minima indexes stored
if ( mx . Count > 0 ) { Console . Write ( " Points ▁ of ▁ Local ▁ " + " maxima ▁ are ▁ : ▁ " ) ; foreach ( int a in mx ) Console . Write ( a + " ▁ " ) ; Console . Write ( " STRNEWLINE " ) ; } else Console . Write ( " There ▁ are ▁ no ▁ points ▁ " + " of ▁ Local ▁ Maxima ▁ " ) ; if ( mn . Count > 0 ) { Console . Write ( " Points ▁ of ▁ Local ▁ " + " minima ▁ are ▁ : ▁ " ) ; foreach ( int a in mn ) Console . Write ( a + " ▁ " ) ; Console . Write ( " STRNEWLINE " ) ; } else Console . Write ( " There ▁ are ▁ no ▁ points ▁ of ▁ " + " Local ▁ Maxima ▁ " ) ; }