Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 5 , 8 , 9 , 6 , 7 , 3 , 4 , 2 , 0 } ; int n = arr . Length ; Array . Sort ( arr ) ; reverse ( arr ) ; Console . WriteLine ( " Array ▁ after ▁ sorting ▁ : ▁ STRNEWLINE " ) ; for ( int i = 0 ; i < n ; ++ i ) { Console . Write ( arr [ i ] + " ▁ " ) ; } } }