Find the second largest element
for ( i = 0 ; i < arr_size ; i ++ ) { if ( arr [ i ] != largest ) second = Math . Max ( second , arr [ i ] ) ; } if ( second == int . MinValue ) Console . Write ( " There ▁ is ▁ no ▁ second ▁ " + " largest ▁ element STRNEWLINE " ) ; else Console . Write ( " The ▁ second ▁ largest ▁ " + " element ▁ is ▁ { 0 } STRNEWLINE " , second ) ; }